I have classes:
@Entity @Table(name="users") public class User{ private Integer id; private String name; private Address address; }
and
@Entity @Table(name="adress") public class Adress{ private Integer id; private String street; (...) }
In any case, how to map the @ManyToOne relation (many users can have the same address), BUT I don't want to have the List <User> users property in my Address class?
Cichy source share