[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6544) Auditing not working for @ManyToMany and @OneToMany with Association table
Lukasz Antoniak (JIRA)
noreply at atlassian.com
Tue Jan 31 16:01:09 EST 2012
[ https://hibernate.onjira.com/browse/HHH-6544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45327#comment-45327 ]
Lukasz Antoniak commented on HHH-6544:
--------------------------------------
Chetan, could you please review the following test case: https://github.com/lukasz-antoniak/hibernate-core/commit/dbff250f719afd8dc9f538812b575b95df8d0e87
I was unable to reproduce this issue against current master (4.1) and 3.6 branches. Version 3.6.10 is going to be released on 08/Feb/12, so please report whether this still does not work for you.
Regards,
Lukasz
> Auditing not working for @ManyToMany and @OneToMany with Association table
> --------------------------------------------------------------------------
>
> Key: HHH-6544
> URL: https://hibernate.onjira.com/browse/HHH-6544
> Project: Hibernate ORM
> Issue Type: Bug
> Components: envers
> Affects Versions: 3.6.6
> Environment: MySql 5.5
> Reporter: chetan verma
> Assignee: Lukasz Antoniak
> Labels: auditing
>
> Below are my entities, table for auditing are created for user,destinies and user.securityGroups relationships, but there is no audit logs for the same with release Hibernate 3.6.6.
> But these things are working fine with 3.6.0.
> @Entity
> @Audited
> public class User {
> @Id
> @GeneratedValue
> private int id;
>
> @Column(nullable=false)
> private String name;
>
> @OneToMany(cascade=CascadeType.ALL, orphanRemoval=true)
> private Set<Destiny> destinies;
>
> @ManyToMany
> @JoinTable(joinColumns = @JoinColumn(name = "User_id"), inverseJoinColumns = @JoinColumn(name = "securityGroups_id"), uniqueConstraints = @UniqueConstraint(columnNames = {
> "User_id", "securityGroups_id" }))
> private Set<SecurityGroup> securityGroups;
> }
> @Entity
> @Audited
> public class Destiny {
> @Id
> @GeneratedValue
> private int id;
>
> @Column(nullable=false)
> private String name;
> }
> @Entity
> @Audited
> public class SecurityGroup {
> @Id
> @GeneratedValue
> private int id;
>
> @Column(nullable=false)
> private String name;
> }
--
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