Sure...
@Entity @Audited public class EntityA Unknown macro: { @OneToMany(cascade = CascadeType.ALL, mappedBy = "entity") @MapKey(name = "locale") private Map<Locale, LocalizedEntityA> localizations = Maps.newHashMap(); }
@Entity @Audited public class EntityA
@MappedSuperclass public class LocalizedBaseEntity<T> extends BaseEntity Unknown macro: { // the entity for which we hold the localized data @ManyToOne private T entity; private Locale locale; }
@MappedSuperclass public class LocalizedBaseEntity<T> extends BaseEntity
@Entity @Audited public class LocalizedEntityA extends LocalizedBaseEntity<EntityA> Unknown macro: { private String name; // more string fields ... }
@Entity @Audited public class LocalizedEntityA extends LocalizedBaseEntity<EntityA>
org.hibernate.MappingException: @AuditMappedBy points to a property that doesn't exist: LocalizedEntityA.entity
Sure...
org.hibernate.MappingException: @AuditMappedBy points to a property that doesn't exist: LocalizedEntityA.entity