-
1. Re: joined-subclass audit
adamw Sep 20, 2009 2:44 PM (in response to vgor)Hello,
do you get an exception or are the genrated audit tables wrong?
Adam -
2. Re: joined-subclass audit
vgor Sep 21, 2009 2:45 AM (in response to vgor)Hello thanks for reply,
generated audit tables are not wrong. But i want to create audit tables manually not by setting 'hibernate.hbm2ddl.auto' parameter. And i create audit table as a copy of table with two additional fields and get error. -
3. Re: joined-subclass audit
adamw Sep 30, 2009 12:15 PM (in response to vgor)So ... if the tables you created manually are different from the ones generated by Envers, this means the latter are wrong, right?
Adam -
4. Re: joined-subclass audit
vgor Oct 1, 2009 2:31 AM (in response to vgor)But the audit table is a copy of the table in the database with two additional fields. If the class User is mapped in Hibernate as joined-subclass of some class for example Contact and physical table user has primary key user_id why user_AUD genereted by Envers has primary key contact_id?
-
5. Re: joined-subclass audit
adamw Oct 1, 2009 11:40 AM (in response to vgor)Ah - this may be a bug then. Please report it in JIRA if possible, with a testcase.
Adam