I have one problem:
I have 3 table in sql server (postgres)
- 1 table is object with id and name columns
- 2 table is object2 with id and name columns
- 3 table is objects-objects2 with id, object.id from table1 and object2.id from table2 columns
and
I have 2 Classes
public class Obj {
private int id;
private String name;
}
public class Obj2 {
private int id;
private String name;
private Set<Obj> objects;
}
What annotations do I need to use for Set objects so that I can receive data through the repository @ManyToMany
or?