Skip to content

Commit

Permalink
Update _persistClass_.java.jhi.ejs
Browse files Browse the repository at this point in the history
Using getter in equals() methods to be Hibernate-safe
  • Loading branch information
jperezdelafuente committed Oct 13, 2023
1 parent 1c94c4d commit ccd6a86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ _%>
return false;
}
<%_ if (!embedded) { _%>
return <%= primaryKey.name %> != null && <%= primaryKey.name %>.equals(((<%= persistClass %>) o).<%= primaryKey.name %>);
return <%= primaryKey.name %> != null && <%= primaryKey.name %>.equals(((<%= persistClass %>) o).getId());
<%_ } else { _%>
return false;
<%_ } _%>
Expand Down

0 comments on commit ccd6a86

Please sign in to comment.