Hi,
I am using Envers 1.2.2.GA and Seam 2.2.1.CR1 and Hibernate 3.3.1.GA.
I have an entity heirachy using table-per-class inheritance.
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class CustomField implements Serializable {
@Column(nullable = false)
@Audited
private String label;
....
}
@Entity
@Table(name = "custom_text_field")
@Audited
public class TextField extends CustomField {
.....
}
@Entity
@Table(name = "custom_boolean_field")
@Audited
public class BooleanField extends CustomField {
.....
}
This creates audit tables:- custom_text_field_AUD, custom_boolean_field_AUD, and CustomField_AUD. When attempting to persist a concrete entity I get "Table 'customfield' doesn't exist". Is this the same as http://opensource.atlassian.com/projects/hibernate/browse/HHH-3945 ?
Is there a solution or work around for this? This is a greenfields project so I am free to change the schema or versions of libs etc however I would like to use table-per-class if at all possible.
Thanks,
Craig
Hmm, did you try adding a @Table to CustomField with some name (e.g. "customfield")?
Even if this workaround works, please report a bug in JIRA (it's different than the one you pasted).
Adam