@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn (name = "account_id")
private Account account;
Works fine.
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn
private Account account;
Exception : Missing column account in SomeSchema.SomeOwnerTable
*
JPA Spec says default join column name is property name ( 'account') + '_' + target table primary key ( 'id' ).
But it looks like hibernamte searching just property name 'account' instead of 'account_id'.
Any comment ?
Thank you.