It is not possible to disable foreign key generation for the following mappings:
{code:java} @ PKJC PrimaryKeyJoinColumn OneToOne(optional = false) @JoinColumn(foreignKey=@ForeignKey(NO_CONSTRAINT)) private Parent parent; {code}
and
{code:java} @OneToOne @MapsId @JoinColumn(name="FK", foreignKey=@ForeignKey(NO_CONSTRAINT)) {code}
The second mapping is probably related to HHH-12320.
There was also a [comment|https://hibernate.atlassian.net/browse/HHH-11180?focusedCommentId=92003&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-92003] added to HHH-11180 after it was closed that is related. |
|