How to set the column name of the foreign key when setting up a one-to-many relationship in JPA?
I would like to change the name of "items_id" to "item_id"
@OneToMany
private List<Item> items;
I tried the following annotations with no success:
- @JoinColumn(name="item_id") // join table is not created
- @Column(name="item_id") // no effect