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. |
|