Hi there, When doing join table with hibernate annotation, how to i add an extra column that's not a join column, like, say married as a weak entity? like an extra column?
@ManyToMany(targetEntity=some.class,
cascade ={CascadeType.PERSIST, CascadeType.MERGE}, fetch=FetchType.EAGER)
@JoinTable(name = "RELATION", joinColumns ={
@JoinColumn(name = "HID", unique = true)
}, inverseJoinColumns = {
@JoinColumn(name = "FID")
})
Set<PERSON> PEOPLE = new HashSet<PERSON>();