79105233

Date: 2024-10-19 15:05:54
Score: 1.5
Natty:
Report link

As this doc, one-to-one relation is not correctly implemented before 6.2. logical-1-1-unique

Previous versions of Hibernate did not create a UNIQUE constraint on the database for logical1 one-to-one associations marked as optional. That is not correct from a modeling perspective as the foreign-key should be constrained as unique. Starting in 6.2, those UNIQUE constraints are now created.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tyrael