Hi guys!
I finaly make my code work with hibrnate, but there is always a sad new. Well, this is my code:
Code:
@Audited(withModifiedFlag=true)
@Entity
@SecondaryTable(name = "Person")
public class Person {
// @Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
@NotAudited
@ManyToMany(fetch = FetchType.EAGER)
@JoinTable(name = "Person", joinColumns = {
@JoinColumn(name = "parent_id", nullable = false, updatable = false) }, inverseJoinColumns = {
@JoinColumn(name = "child_id", nullable = false, updatable = false) })
protected Set<Person> p;
...
}
When I disable the reverse with @NotAudited, everything work perfectly, but when I try to enable it with @Audited and many parameters, I got an Oracle exception that I cannot insert a Null value in a column of reverse table (This value is not null). I don't understand how it works.
does anyone got the same problem before and know how to resolve it?
Thank you in advance.