An AbstractClass annotated with @MappedSuperClass contains an @Embedded private field (with public getter and setter). A ConcreteClass extends this AbstractClass. (See attached project). While executing the enhanced on that project, I get the following error:
[ERROR] Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.2.18.Final:enhance (default) on project hibernate-enhancer-reproduce: Unable to enhance class: ConcreteClass.class: Unable to enhance persistent attribute [com.aegaeon.dbmodel.ConcreteClass:range]: Could not enhance entity class [com.aegaeon.dbmodel.ConcreteClass] to add field writer method [$$_hibernate_write_range]: [source error] Field range in com.aegaeon.dbmodel.AbstractClass is private. -> [Help 1]
If I replace the @Embedded field with a simple integer. There is no problem to enhance the class. |