I'm using version 4.3.7.Final for both (hibernate and envers).
My class are:
Code:
@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Audited(targetAuditMode=RelationTargetAuditMode.NOT_AUDITED, modStore=ModificationStore.FULL)
public class Product implements Serializable {
@Id
@SequenceGenerator(name="PRODUCT_IDPRODUCT_GENERATOR", sequenceName="PRODUCT_ID_PRODUCT_SEQ", allocationSize=1, initialValue=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PRODUCT_IDPRODUCT_GENERATOR")
@Column(name="id_product")
private Long idProduct;
//fields
}
Code:
@Entity
@Table(name="special_product")
@PrimaryKeyJoinColumn(name="id_product")
@Audited(targetAuditMode=RelationTargetAuditMode.NOT_AUDITED, modStore=ModificationStore.FULL)
public class SpecialProduct{
//fields
}