[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6275) Unexpected audit entries when using cascadeType.ALL
Amin Mohammed-Coleman (JIRA)
noreply at atlassian.com
Sun May 29 02:00:26 EDT 2011
Unexpected audit entries when using cascadeType.ALL
---------------------------------------------------
Key: HHH-6275
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6275
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.6.4
Environment: mac os 10.6.7
java 1.6.0
Reporter: Amin Mohammed-Coleman
Attachments: hibernate-envers-test.zip
I have the following object model
Class A {
@OneToMany (cascade=CascadeType.ALL)
Set<B> setOfClassB = new HashSet<B>();
}
@Audited
Class B {
String name;
String value;
@ManyToOne(cascade=CascadeType.ALL)
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
ClassA belongsTo;
}
Everything is ok. I can create an instance of classA with a set of audited classB's. WHat is interesting is that if i update ClassA with any other data I get an entry update in the audit table for each entity classB saying an update occurred which is not correct as I only updated classA which is not audited.
Please see http://community.jboss.org/thread/166827?tstart=0, also I have attached a small test case
--
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