in domain i have:
Code:
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name="AddrID", nullable = true, updatable = true)
public Address getAddress() {
return address;
}
With Hibernate 4.3.9 it was creating foreign key with name FK_687us5fhb8bwavfrrwj97o0s7.
After migrating to Hibernate 5.1.5 it creates a duplicate foreign key with name FKdeto0y750974e303dkg4qlh1e.
What i need it to keep the old foreign key name (FK_687us5fhb8bwavfrrwj97o0s7).
I try Hibernate5NamingStrategy without any success, it does not call determineForeignKeyName or determineJoinColumnName methods.