That’s been some time ago. I notice however that the InlineDirtyCheckEqualsHelper even spells “fieldName” and does not mention attributes: https://github.com/hibernate/hibernate-orm/blob/2d345fc04bf4c2df1d76d5f89bd4dfc7e60eee02/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/InlineDirtyCheckerEqualsHelper.java#L14 The decision to place this field name is made here: https://github.com/hibernate/hibernate-orm/blob/2d345fc04bf4c2df1d76d5f89bd4dfc7e60eee02/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/InlineDirtyCheckingHandler.java#L121 The whole notion around this is based on an “AnnotatedFieldDescription”. Is the required information available at this point? I remember porting this from the Javassist implementation back in the days, I can hardly imagine that I came up with this approach. |