[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5910) Hbm2ddl.SchemaExport creates audit table for abstract audited classes

Alexandre Garnier (JIRA) noreply at atlassian.com
Mon Feb 14 18:19:05 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Garnier updated HHH-5910:
-----------------------------------

    Attachment: HibernateTestCase.tar.gz

Here is a test case.
There is a useless AbstractEntity_AUD table created.
If AbstractEntity is declared as @MappedSuperClass, the audit table is not created, but in this case it must be an @Entity to be referenced in the ReferencingEntity.

> Hbm2ddl.SchemaExport creates audit table for abstract audited classes
> ---------------------------------------------------------------------
>
>                 Key: HHH-5910
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5910
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.6.1
>            Reporter: Alexandre Garnier
>            Assignee: Adam Warski
>         Attachments: HibernateTestCase.tar.gz
>
>
> Hbm2ddl.SchemaExport doesn't create entity table for abstract classes but it creates the audit table.

-- 
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