No functional change - Simplify BeanDescriptor.isIdLoaded()

This commit is contained in:
rbygrave committed 2021-09-04 22:24:59 +12:00
1 parent a2f49a544c
commit 4ce70e401d
1 file changed
+1 -1
@@ -3087,7 +3087,7 @@ public class BeanDescriptor<T> implements BeanType<T>, STreeType, SpiBeanType {
public boolean isIdLoaded(EntityBeanIntercept ebi) { public boolean isIdLoaded(EntityBeanIntercept ebi) {
// assume id loaded for IdClass case with idPropertyIndex == -1 // assume id loaded for IdClass case with idPropertyIndex == -1
return idPropertyIndex == -1 ? true : ebi.isLoadedProperty(idPropertyIndex); return idPropertyIndex == -1 || ebi.isLoadedProperty(idPropertyIndex);
} }
boolean hasIdValue(EntityBean bean) { boolean hasIdValue(EntityBean bean) {