[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4744) Incorrect audit entity for TABLE_PER_CLASS with abstract classes (results in query error)
Daniel Bleisteiner (JIRA)
noreply at atlassian.com
Tue Apr 6 07:16:03 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36167#action_36167 ]
Daniel Bleisteiner commented on HHH-4744:
-----------------------------------------
In my case I have two abstract classes in the hierarchie and it helped to define the inheritance stategy at all abstract levels: @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) - this avoids the creation of the unneccessary version tables.
> 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.2.0.ga, 3.5.0-Beta-2
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list