[hibernate/hibernate-orm] b9351c: HHH-18829 Test:
by Čedomir Igaly
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: b9351cffc6ee2f8b1fb838b46ce9a0e714d0352b
https://github.com/hibernate/hibernate-orm/commit/b9351cffc6ee2f8b1fb838b...
Author: Čedomir Igaly <cedomir.igaly(a)e-dama.net>
Date: 2024-12-05 (Thu, 05 Dec 2024)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/derivedidentities/bidirectional/Order.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/derivedidentities/bidirectional/OrderLine.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/derivedidentities/bidirectional/Product.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/hhh18829/AutoGeneratedIdClassTest.java
A hibernate-core/src/test/java/org/hibernate/orm/test/mapping/hhh18829/EmployeeWithoutIdClass.java
A tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/hhh18829/Address.java
A tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/hhh18829/AnotherEmployee.java
A tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/hhh18829/AutoGeneratedIdClassTest.java
A tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/hhh18829/Employee.java
A tooling/metamodel-generator/src/test/java/org/hibernate/processor/test/hhh18829/EmployeeWithIdClass.java
Log Message:
-----------
HHH-18829 Test:
- Hibernate Processor - generate ID class in metadata class if entity not annotated with @IdClass;
order of record components must match order of properties in entity class
- Hibernate Core - check if ID class has been properly generated with preserved order of components
- Annotated existing test entity classes with @Exclude when ID class can not be generated without causing compilation errors
Commit: 445f95fb62574caa897338321ed04bab8ad095bc
https://github.com/hibernate/hibernate-orm/commit/445f95fb62574caa8973383...
Author: Čedomir Igaly <cedomir.igaly(a)e-dama.net>
Date: 2024-12-05 (Thu, 05 Dec 2024)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/EntityBinder.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/InheritanceState.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaSingleAttribute.java
A tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/IdClassMetaAttribute.java
Log Message:
-----------
HHH-18829 Main:
- Hibernate Processor - create ID class in meta data class if entity class with more than
one ID component is not annotated with @IdClass; property order must be preserved
- Hibernate Core - if entity class has more than one ID component, but is not annotated with @IdClass
entity binder should try to use ID class from metamodel if generated
Compare: https://github.com/hibernate/hibernate-orm/compare/158771bbfafa...445f95f...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 year, 4 months