mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-20 23:05:23 +00:00
#115 - Mapping - Add support for @ElementCollection enhancement
Initial support - simple List.
This commit is contained in:
1 parent
c44931ea25
commit
74a9019535
79 files changed
+1891
-805
No files matched your search
@@ -210,6 +210,8 @@ public class DeployBeanProperty {
|
||||
|
||||
private boolean undirectionalShadow;
|
||||
|
||||
private boolean elementProperty;
|
||||
|
||||
private int sortOrder;
|
||||
|
||||
private boolean excludedFromHistory;
|
||||
@@ -444,7 +446,11 @@ public class DeployBeanProperty {
|
||||
}
|
||||
|
||||
public BeanPropertySetter getSetter() {
|
||||
return setter;
|
||||
if (elementProperty) {
|
||||
return new BeanPropertyElementSetter(sortOrder);
|
||||
} else {
|
||||
return setter;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1081,4 +1087,10 @@ public class DeployBeanProperty {
|
||||
return dbMigrationInfos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set when this property is part of a 'element bean' used with ElementCollection.
|
||||
*/
|
||||
public void setElementProperty() {
|
||||
this.elementProperty = true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user