mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-02 16:22:27 +00:00
#999 - @DiscriminatorColumn columnDefinition is ignored for DDL generation
This commit is contained in:
1 parent
88c6ec358c
commit
d04954e46f
6 files changed
+69
-9
No files matched your search
@@ -26,6 +26,8 @@ public class InheritInfo {
|
||||
|
||||
private final int discriminatorLength;
|
||||
|
||||
private final String columnDefn;
|
||||
|
||||
private final String where;
|
||||
|
||||
private final Class<?> type;
|
||||
@@ -58,6 +60,7 @@ public class InheritInfo {
|
||||
|
||||
this.discriminatorType = deploy.getDiscriminatorType(parent);
|
||||
this.discriminatorLength = deploy.getDiscriminatorLength(parent);
|
||||
this.columnDefn = deploy.getColumnDefn();
|
||||
this.where = InternString.intern(deploy.getWhere());
|
||||
|
||||
if (r == null) {
|
||||
@@ -164,14 +167,14 @@ public class InheritInfo {
|
||||
public BeanProperty[] localProperties() {
|
||||
return descriptor.propertiesLocal();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the children.
|
||||
*/
|
||||
public ArrayList<InheritInfo> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the bean property additionally looking in the sub types.
|
||||
*/
|
||||
@@ -342,6 +345,13 @@ public class InheritInfo {
|
||||
return discriminatorLength;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the explicit column definition.
|
||||
*/
|
||||
public String getColumnDefn() {
|
||||
return columnDefn;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the discriminator value for this node.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user