Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 0253e1fe7a7cc4eb64fcc48f07630dee8d4fc20a
https://github.com/hibernate/hibernate-orm/commit/0253e1fe7a7cc4eb64fcc48...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-11-27 (Sun, 27 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java
M hibernate-core/src/main/java/org/hibernate/cfg/ToOneBinder.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/embeddable/MappedByEmbeddableTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/inheritance/discriminator/SingleTableInheritancePersistTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/inheritance/discriminator/TablePerClassInheritancePersistTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/inheritance/discriminator/TablePerClassInheritanceTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/insertordering/InsertOrderingSelfReferenceSingleTableInheritance.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/primarykey/NullablePrimaryKeyTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/ondelete/toone/ToOneOnDeleteTest.java
M
hibernate-envers/src/test/java/org/hibernate/envers/test/integration/query/InheritanceAssociationToOneInnerJoinTest.java
M
hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/onetoone/bidirectional/BiRefIngEntity.java
M
hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/onetoone/unidirectional/UniRefIngEntity.java
Log Message:
-----------
HHH-15767 put unique constraints where they belong on optional @OneToOne associations
this was a bug that allowed people to use @OneToOne as a regular @ManyToOne
and ... people did ... as evidenced by all these bogus tests I just fixed
this is in principle a breaking change because it breaks code that was broken
Commit: 5172d8798faff97c6f536f06dda89bdc3de33e56
https://github.com/hibernate/hibernate-orm/commit/5172d8798faff97c6f536f0...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-11-27 (Sun, 27 Nov 2022)
Changed paths:
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/DB2LegacyDialect.java
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/DB2iLegacyDialect.java
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/DB2zLegacyDialect.java
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SQLServerLegacyDialect.java
M
hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/SybaseLegacyDialect.java
M
hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/cfg/IndexOrUniqueKeySecondPass.java
M hibernate-core/src/main/java/org/hibernate/dialect/AbstractTransactSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2iDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/DB2zDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SybaseDialect.java
A
hibernate-core/src/main/java/org/hibernate/dialect/unique/AlterTableUniqueIndexDelegate.java
M
hibernate-core/src/main/java/org/hibernate/dialect/unique/CreateTableUniqueDelegate.java
R hibernate-core/src/main/java/org/hibernate/dialect/unique/DB2UniqueDelegate.java
A
hibernate-core/src/main/java/org/hibernate/dialect/unique/SkipNullableUniqueDelegate.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/DDLFormatterImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/Index.java
M hibernate-core/src/main/java/org/hibernate/mapping/Table.java
M hibernate-core/src/main/java/org/hibernate/mapping/UniqueKey.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintThrowsConstraintViolationExceptionTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/mapping/UnidirectionalOneToManyUniqueConstraintOrderColumnTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/primarykey/NullablePrimaryKeyTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/inheritance/tableperclass/Element.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/inheritance/tableperclass/SchemaCreationTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/uniqueconstraint/UniqueConstraintDropTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/schemaupdate/uniqueconstraint/UniqueConstraintGenerationTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/tm/JtaBeforeCompletionFailureTest.java
Log Message:
-----------
HHH-15762 work around weird semantics of null in unique index on DB2/T-SQL
Compare:
https://github.com/hibernate/hibernate-orm/compare/82e42ef94629...5172d87...