Incorrect audit entity for TABLE_PER_CLASS with abstract classes (results in query error)
-----------------------------------------------------------------------------------------
Key: HHH-4744
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4744
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.5.0-Beta-2, 3.2.0.ga
Reporter: Volker Schmidt
Attachments: envers-1.2.2.ga-hibernate-3.3.patch, trunk.patch
The configuration code of Envers does not check the abstract flag of a PersistentClass.
Thus the created audit entity is not declared as being abstract. Abstract entities do not
have concrete tables. Without declaring the audit entity of a super class as being
abstract, queries include a table (that does not exist) for the abstract super class.
I have added a patch for the trunk and for Envers 1.2.2.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira