mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
FIX: Modification of a OneToMany-Relation with @OrderColumn was not detected
This commit is contained in:
1 parent
01e8b5f471
commit
7e4bde8d34
2 files changed
+27
-12
No files matched your search
@@ -471,7 +471,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (softDelete) {
|
||||
String alias = hasJoinTable() ? "x2" : "x";
|
||||
sb.append(" and ").append(targetDescriptor.getSoftDeletePredicate(alias));
|
||||
@@ -606,7 +606,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
if (!manyToMany && childMasterProperty != null) {
|
||||
// bidirectional in the sense that the 'master' property
|
||||
// exists on the 'detail' bean
|
||||
childMasterProperty.setValue(child, parent);
|
||||
childMasterProperty.setValueIntercept(child, parent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1072,7 +1072,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
|
||||
public void bindElementValue(SqlUpdate insert, Object value) {
|
||||
targetDescriptor.bindElementValue(insert, value);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns true, if we must create a m2m join table.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user