Skip to content

Commit

Permalink
No functional change - Simplify BeanDescriptor.isIdLoaded()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Sep 4, 2021
1 parent a2f49a5 commit 4ce70e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,7 @@ public boolean referenceIdPropertyOnly(EntityBeanIntercept ebi) {

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) {
Expand Down

0 comments on commit 4ce70e4

Please sign in to comment.