Skip to content

Commit

Permalink
HHH-18901 Do not enhance if AccessType default is PROPERTY
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Marlow <[email protected]>
  • Loading branch information
scottmarlow committed Jan 7, 2025
1 parent d59d6fa commit 350d8b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,11 @@ private static boolean checkUnsupportedAttributeNaming(TypeDescription managedCt
// Check name of the getter/setter method with persistence annotation and getter/setter method name that doesn't refer to an entity field
// and will return false. If the property accessor method(s) are named to match the field name(s), return true.
final AccessType defaultAccessType = determineDefaultAccessType( managedCtClass );

if ( AccessType.PROPERTY == defaultAccessType) {
return true;
}

final MethodList<?> methods = MethodGraph.Compiler.DEFAULT.compile( (TypeDefinition) managedCtClass )
.listNodes()
.asMethodList()
Expand Down

0 comments on commit 350d8b1

Please sign in to comment.