@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn (name = "account_id")
private Account account;
It works great.
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn
private Account account;
Results in: Exception : Missing column account in SomeSchema.SomeOwnerTable
JPA Spec says default union column name
property name ( 'account') + '_' + target table primary key ( 'id' )
But it looks like hibernate is only looking for a property named "account" instead of "account_id".
Any comments?
source
share