Skip to content

Commit

Permalink
one more fix to entity state interceptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Dec 8, 2014
1 parent 2122fb8 commit 8c776b2
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -44,7 +44,14 @@ public Boolean isTransient(Object entity) {
}

private Boolean isTransient(EntityState object) {
return isTransient(object, false);
}

private Boolean isTransient(EntityState object, boolean isObjectMyParent) {
Boolean trans = object != null ? object.isTransient() : null;
if (!isObjectMyParent) {
return trans;
}
if (Boolean.TRUE.equals(trans)) {
return true;
}
Expand Down

0 comments on commit 8c776b2

Please sign in to comment.