]
Lukasz Antoniak reassigned HHH-6544:
------------------------------------
Assignee: Lukasz Antoniak (was: Adam Warski)
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: