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.