]
praveen s commented on HHH-3741:
--------------------------------
i am facing similar issue, i have a child table relationship in abstract class but getting
null audit values, can you please advice me, i am working on latest envers version
Join tables are not audited if the join is defined in an abstract
------------------------------------------------------------------
Key: HHH-3741
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3741
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.5
Environment: JBoss 4.2.3
Seam 2.1
Hibernate 3.4
Envers 3.4
PostgreSQL 8.3
Reporter: David Lilley
Assignee: Adam Warski
Fix For: 3.5
Attachments: EnversTest.zip
I have an abstract with a one-to-many relationship to to another abstract. I defined a
join table and an audit join table for the one-to-many relationship.
The abstract classes are extended to "Set" and "Item" classes using
the joined inheritance type. (Set and Item aren't the real names of course; the names
have been scrubbed to protect the innocent.)
The tables and audit tables are all created correctly. When I run my tests, the entities
and relationship tables are correctly populated, and the entities' audit tables are
populated. However, the audit table for the relationships are empty. (i.e., Item,
Item_aud, Set, Set_aud, Set_Item all have the proper data, but Set_Item_aud doesn't
have any data.)
I tested a non-abstract class that has a similar one-to-many relationship, using the same
hibernate annotations, with the same type of join table and audit join table. When I run
my tests, all tables are correctly populated - including the join audit table.
Attached is a complete failing test case, with a SEAM test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: