#1783 - Save bean with only *ToMany relations with user generated ID

This commit is contained in:
rob bygrave
2019-08-07 22:28:51 +12:00
parent a115cdf095
commit b3d0c21a80
4 changed files with 101 additions and 1 deletions
@@ -3202,7 +3202,7 @@ public class BeanDescriptor<T> implements BeanType<T>, STreeType {
}
boolean hasIdPropertyOnly(EntityBeanIntercept ebi) {
return ebi.hasIdOnly(idPropertyIndex);
return propertiesBaseScalar.length > 0 && ebi.hasIdOnly(idPropertyIndex);
}
public boolean isIdLoaded(EntityBeanIntercept ebi) {