[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4439) In general it is impossible to override properties defined in @MappedSuperclass to change how they will be handled during auditing.
Lukasz Antoniak (JIRA)
noreply at atlassian.com
Mon Jan 9 15:57:13 EST 2012
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Antoniak resolved HHH-4439.
----------------------------------
Resolution: Fixed
Fix Version/s: 4.0.1
Assignee: Lukasz Antoniak (was: Adam Warski)
It is now possible with {{@AuditOverride}} annotation. You can review pull request's test cases for details.
> In general it is impossible to override properties defined in @MappedSuperclass to change how they will be handled during auditing.
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: HHH-4439
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4439
> Project: Hibernate Core
> Issue Type: Bug
> Components: envers
> Affects Versions: 3.2.x, 3.3.2, 3.5.0.Beta-1, 3.5.0-Beta-2
> Reporter: Eugene Goroschenya
> Assignee: Lukasz Antoniak
> Priority: Critical
> Fix For: 4.0.1
>
>
> It seems there are several use cases with this issue but most important for me is
> @MappedSuperclass
> class A {
> @Audited
> private String value;
> }
> @Entity
> @Audited
> class MyAutided extends A {
> }
> @Entity
> class MyNotAutided extends A {
> }
> I need MyNotAutided is not audited at all (there is not MyNotAutided_AUD table and MyNotAutided revisions are not created)
> nut seems it is impossible because use case above leads to creating MyNotAutided_AUD table and creating of revisions for MyNotAutided.
> I assume @AuditOverride must support it to say that MyNotAutided.value is not audited but it doesn't work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list