The erros occurs when inline dirty checking is enabled and it looks like this:
{code:java}Caused by: java.lang.IllegalStateException: Cannot access private org.acme.rest.EmbeddedValue org.acme.rest.BaseEntity.superField from class org.acme.rest.TestEntity{code}
Mapping example:
{code:java}@MappedSuperclass public static abstract class TableTopGame {
@Embedded private Component firstPlayerToken;
... }
@Embeddable public static class Component {
@Column(name = "first_player_token") private String component; ... }
@Entity(name = "CardGame") public static class CardGame extends TableTopGame {
@Id private String id; private String name;
... }{code}
As a workaround, adding the `@Embedded` annotation to the getter/setter instead of the field won’t cause the exception.
Link to the original issue: [https://github.com/quarkusio/quarkus/issues/5756|https://github.com/quarkusio/quarkus/issues/5756|smart-link]
StackOverflow: [https://stackoverflow.com/questions/59032839/quarkus-hibernate-orm-throws-enhancementexception-failed-to-enhance-class-cl?noredirect=1#comment104309724_59032839|https://stackoverflow.com/questions/59032839/quarkus-hibernate-orm-throws-enhancementexception-failed-to-enhance-class-cl?noredirect=1#comment104309724_59032839] |
|