Skip to content

Commit

Permalink
HHH-19206 Skip dirty tracking for embedded id fields
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Mar 3, 2025
1 parent 2a62f89 commit bf900c3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ else if ( !persistentField.hasAnnotation( Id.class )
}

if ( enhancementContext.isCompositeField( persistentField )
// Don't do composite owner tracking for records
&& !persistentField.getType().isRecord() ) {
&& !persistentField.hasAnnotation( EmbeddedId.class )
// Don't do composite owner tracking for records
&& !persistentField.getType().isRecord() ) {

// HHH-13759 - Call getter on superclass if field is not visible
// An embedded field won't be visible if declared private in a superclass
Expand Down

0 comments on commit bf900c3

Please sign in to comment.