[JPA] Benefit of @JoinColumn on @ManyToOne
posted 8 years ago
You specify the @JoinColumn to set the foreign key column name for the relationship. Otherwise a default name will be given for the foreign key column. If you are mapping to an existing database schema you will typically require setting the @JoinColumn, otherwise the defaults are probably fine.