[hibernate-issues] [Hibernate-JIRA] Assigned: (HHH-6544) Auditing not working for @ManyToMany and @OneToMany with Association table

Gail Badner (JIRA) noreply at atlassian.com
Mon Aug 15 19:09:02 EDT 2011


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

Gail Badner reassigned HHH-6544:
--------------------------------

    Assignee: Adam Warski

Adam, please assign as appropriate.
Thanks,
Gail

> Auditing not working for @ManyToMany and @OneToMany with Association table
> --------------------------------------------------------------------------
>
>                 Key: HHH-6544
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6544
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 3.6.6
>         Environment: MySql 5.5
>            Reporter: chetan verma
>            Assignee: Adam Warski
>              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