mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-13 06:42:57 +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) {
|
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) {
|
||||||
|
|||||||
Reference in new issue
Block a user