vaadin / bakery-app-starter-fw8-spring

Internal repository for Bakery App Starter for FW8 and Spring
Other
0 stars 2 forks source link

Use @JoinColumn at Order.items to make it more conventional #442

Open johannest opened 7 years ago

johannest commented 7 years ago

Not critical issue.

Unidirectional @OneToMany without @JoinColumn might cause unexpected issues in the future in some databases, since join table is autogenerated.

https://en.wikibooks.org/wiki/Java_Persistence/OneToMany#Unidirectional_OneToMany.2C_No_Inverse_ManyToOne.2C_No_Join_Table_.28JPA_2.x_ONLY.29 https://stackoverflow.com/questions/2095998/onetomany-without-inverse-relationship-and-without-a-join-table