Studying JPA . And studying связи . I can not understand the difference between these 2 annotations. This is how OneToOne looks OneToOne - in one table a foreign key is created on another table.
This is how OneToMany looks OneToMany - one table is created that links the other two tables. But you can also configure it using @JoinColumn that it would not create a table, but a внешний ключ . What are the differences then? OneToMany be implemented like this? OneToMany is a список with entities. Those. data structure with data structures inside. Shouldn't it be implemented as a bd with bd? 
And one more question: Suppose I have E1 и E2 . Why do you need bidirectional communication? So that I can change E1 interacting with E2 and change E2 interacting with E1 ? Can anyone answer? heya
