InlineDirtyCheckingHandler only applies the CodeTemplates.CompositeFieldDirtyCheckingHandler if persistentField.hasAnnotation( Embedded.class ), which is a bit counterintuitive and actually can lead to bugs when using enhancement like in Quarkus. It is especially confusing because Hibernate works just fine without the @Embedded annotation. The check seems unnecessary since we already check if the target type has the @Embeddable annotation. |