I would like to match many-to-many in Hibernate using a link table. I have two classes: "Parent and child", for example:
public class Parent{
private List<Child> _children;
}
I use a link table (link_table) with three columns link_id, parent_idand child_id. The database is an SQL server, and identifier types are uniqueidentifier. Therefore, I usually use guid for id fields.
How can you implement this using a tag if this is the right tag to use? Do you know of any good documentation for this? <list />
I am currently getting a ConstraintViolationException, but could not find any good documentation or examples of this.
, : link_id, .