Provide an option to skip foreign key creation for ConstraintMode.PROVIDER_DEFAULT

Description

Foreign key has obvious disadvantages, and the only one advantage is Referential Integrity, which is a bit unworthy for ORM. hibernate should provide a configurable option in AvailableSettings to skip foreign key creation for ConstraintMode.PROVIDER_DEFAULT.

https://stackoverflow.com/questions/56693633/how-to-set-default-constraintmode-in-jpa-hibernate

Environment

None

Activity

Show:
周雁鸣
October 14, 2020, 7:45 AM

It would be nice if backport to 5.4.

Assignee

周雁鸣

Reporter

周雁鸣

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure