mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
No functional change - Simplify BeanDescriptor.isIdLoaded()
This commit is contained in:
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) {
|
||||
// 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) {
|
||||
|
||||
Reference in new issue
Block a user