Work for
HHH-8805
was pushed against the metamodel branch (6.0). I did port the necessary precursory code back to master for 5.0. However that really just boiled down to:
-
adding o.h.mapping.ForeignKey#isCreationEnabled
-
leveraging o.h.mapping.ForeignKey#isCreationEnabled from schema tools
To actually disable creation o.h.mapping.ForeignKey#disableCreation needs to be called. Atm that only happens when the FK is defined from mappings to be named "none".
Still need to add direct handling of @ForeignKey(ConstraintMode.NO_CONSTRAINT) in the annotation binding code in terms of actually calling o.h.mapping.ForeignKey#disableCreation.
Petar Tahchiev Can hopefully get us some tests too..
|