[hibernate/hibernate-orm] aba267: HHH-20644 Add test for issue
by Andrea Boriero
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: aba267f3092e00305d85a64e0174119736ae28d3
https://github.com/hibernate/hibernate-orm/commit/aba267f3092e00305d85a64...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaEmployee.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaPerson.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaUser.java
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/shared-embeddable-formula/hbm.xml
Log Message:
-----------
HHH-20644 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: c415586a1c1d4d6dbf8b4eeaa16694bafed4e403
https://github.com/hibernate/hibernate-orm/commit/c415586a1c1d4d6dbf8b4ee...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformerComponentHandler.java
Log Message:
-----------
HHH-20644 HbmXmlTransformer crashes with AssertionFailure when shared embeddable has formula property
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 0e563a8b447b56b6b26212b25f2fa333d8ef0194
https://github.com/hibernate/hibernate-orm/commit/0e563a8b447b56b6b26212b...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/EmbeddableComponent.java
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/UpdateFalseEntity.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/component-update-false/hbm.xml
Log Message:
-----------
HHH-20645 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 30bf1f3d8a84d224461c79b43d1b386c3b3de4da
https://github.com/hibernate/hibernate-orm/commit/30bf1f3d8a84d224461c79b...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20645 HbmXmlTransformer loses insert="false"/update="false" for component properties without explicit column
When a component property has update="false" or insert="false" but no
explicit column, the transformer now generates a column element to
carry the insertable/updatable settings into the orm.xml output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 8bc88c60dc05b5efa909d606bae93536d84d7231
https://github.com/hibernate/hibernate-orm/commit/8bc88c60dc05b5efa909d60...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/union-subclass-transient/hbm.xml
Log Message:
-----------
HHH-20648 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 2bddbc513e97841222fef4fdc4558ef83c682150
https://github.com/hibernate/hibernate-orm/commit/2bddbc513e97841222fef4f...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/TransformationHelper.java
Log Message:
-----------
HHH-20648 HbmXmlTransformer generates duplicate transient declarations for inherited properties on subclass entities
The transformer now excludes properties declared on parent classes when
generating <transient/> elements for subclass entities, preventing
duplicate transient declarations for inherited unmapped properties.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 75dc9fb81e6b3433c50aeb0f4dd3fe724c088c0c
https://github.com/hibernate/hibernate-orm/commit/75dc9fb81e6b3433c50aeb0...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/element-not-null/hbm.xml
Log Message:
-----------
HHH-20649 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 663e5762b201d708b36a22bb957194d19fc1abca
https://github.com/hibernate/hibernate-orm/commit/663e5762b201d708b36a22b...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20649 HbmXmlTransformer loses not-null, unique, length, precision and scale on element collection columns
The transformer now passes not-null, unique, length, precision
and scale from the hbm element definition to the generated column
in the orm.xml output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 5eb4002adcbddd840a4ec9f48393f45c86f30143
https://github.com/hibernate/hibernate-orm/commit/5eb4002adcbddd840a4ec9f...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/property-index/hbm.xml
Log Message:
-----------
HHH-20655 Add test for issue drop index
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 7ef44ed6174bb84e4b49f3e83610f93fd6833f8b
https://github.com/hibernate/hibernate-orm/commit/7ef44ed6174bb84e4b49f3e...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20655 HbmXmlTransformer drops index attributes from properties and many-to-one associations
The transformer now generates <index> elements on the entity table
for property index, many-to-one index, any index, and column index
attributes from the hbm.xml mapping.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 1af258b455fd39dd616bdf15cd68d2a66d025d86
https://github.com/hibernate/hibernate-orm/commit/1af258b455fd39dd616bdf1...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/one-to-one-property-ref/hbm.xml
Log Message:
-----------
HHH-20656 Add test issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: b98ed608cc9a83ea23385a0310673756ee362fa8
https://github.com/hibernate/hibernate-orm/commit/b98ed608cc9a83ea23385a0...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20656 HbmXmlTranformer Qualify class name in isPropertyRefBackReference for one-to-one
The one-to-one property-ref back-reference check used the short class
name from the hbm.xml, but the transformation state uses fully qualified
names. This caused the target entity lookup to fail, preventing the
transformer from generating mapped-by for one-to-one associations
with property-ref.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: bbbad1ab5e6ff561eabce2906145f8e31a899c64
https://github.com/hibernate/hibernate-orm/commit/bbbad1ab5e6ff561eabce29...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20656 HbmXmlTranformer should generate mapped-by for constrained one-to-one inverse side
When the target entity has a constrained one-to-one (FK on PK), the
non-constrained side is the inverse and should have mapped-by. The
transformer now detects this via the boot model's ForeignKeyDirection
and finds the constrained property name on the target entity.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Compare: https://github.com/hibernate/hibernate-orm/compare/bd72d55aae1c...bbbad1a...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
2 days, 10 hours
[hibernate/hibernate-orm] 5757ed: HHH-20644 Add test for issue
by Andrea Boriero
Branch: refs/heads/8.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 5757edaf3ead9e227f09864f7e960db4c7ff2d22
https://github.com/hibernate/hibernate-orm/commit/5757edaf3ead9e227f09864...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaEmployee.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaPerson.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/FormulaUser.java
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/shared-embeddable-formula/hbm.xml
Log Message:
-----------
HHH-20644 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: d8238b1966c2e00fba59f87258a9df6e9e0ffcb9
https://github.com/hibernate/hibernate-orm/commit/d8238b1966c2e00fba59f87...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformerComponentHandler.java
Log Message:
-----------
HHH-20644 HbmXmlTransformer crashes with AssertionFailure when shared embeddable has formula property
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: cb8161d66cd46fb02928ddf963d74b2c47dfc2dc
https://github.com/hibernate/hibernate-orm/commit/cb8161d66cd46fb02928ddf...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/EmbeddableComponent.java
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/UpdateFalseEntity.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/component-update-false/hbm.xml
Log Message:
-----------
HHH-20645 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 3c0e2990acbe1524925747ec0d4396bb54f4e240
https://github.com/hibernate/hibernate-orm/commit/3c0e2990acbe1524925747e...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20645 HbmXmlTransformer loses insert="false"/update="false" for component properties without explicit column
When a component property has update="false" or insert="false" but no
explicit column, the transformer now generates a column element to
carry the insertable/updatable settings into the orm.xml output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 7b57a0b82cb079f73452ec3a585f9df655c68e0d
https://github.com/hibernate/hibernate-orm/commit/7b57a0b82cb079f73452ec3...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/union-subclass-transient/hbm.xml
Log Message:
-----------
HHH-20648 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: e81fb39d01cbfed00ff4f2d10937a9bf20118916
https://github.com/hibernate/hibernate-orm/commit/e81fb39d01cbfed00ff4f2d...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/TransformationHelper.java
Log Message:
-----------
HHH-20648 HbmXmlTransformer generates duplicate transient declarations for inherited properties on subclass entities
The transformer now excludes properties declared on parent classes when
generating <transient/> elements for subclass entities, preventing
duplicate transient declarations for inherited unmapped properties.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: e7f7d1de35dd513449279c162dfa4fd7f293a279
https://github.com/hibernate/hibernate-orm/commit/e7f7d1de35dd513449279c1...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/element-not-null/hbm.xml
Log Message:
-----------
HHH-20649 Add test for issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: ac5dd0265f15e0a67cfb0e3ffd5fc560e9bcd983
https://github.com/hibernate/hibernate-orm/commit/ac5dd0265f15e0a67cfb0e3...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20649 HbmXmlTransformer loses not-null, unique, length, precision and scale on element collection columns
The transformer now passes not-null, unique, length, precision
and scale from the hbm element definition to the generated column
in the orm.xml output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 00a4c4993af39badca0f3ca30a7a43037eed5054
https://github.com/hibernate/hibernate-orm/commit/00a4c4993af39badca0f3ca...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/property-index/hbm.xml
Log Message:
-----------
HHH-20655 Add test for issue drop index
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 53708fe87e6a52e4b12de66b0e6fce108e0672cd
https://github.com/hibernate/hibernate-orm/commit/53708fe87e6a52e4b12de66...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20655 HbmXmlTransformer drops index attributes from properties and many-to-one associations
The transformer now generates <index> elements on the entity table
for property index, many-to-one index, any index, and column index
attributes from the hbm.xml mapping.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: b3d60997f51e925bde86e0e9d4354b28e74f2295
https://github.com/hibernate/hibernate-orm/commit/b3d60997f51e925bde86e0e...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/jaxb/mapping/HbmTransformationJaxbTests.java
A hibernate-core/src/test/resources/xml/jaxb/mapping/one-to-one-property-ref/hbm.xml
Log Message:
-----------
HHH-20656 Add test issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: 7b3176b4168461c4da94034140332f7caf81b749
https://github.com/hibernate/hibernate-orm/commit/7b3176b4168461c4da94034...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20656 HbmXmlTranformer Qualify class name in isPropertyRefBackReference for one-to-one
The one-to-one property-ref back-reference check used the short class
name from the hbm.xml, but the transformation state uses fully qualified
names. This caused the target entity lookup to fail, preventing the
transformer from generating mapped-by for one-to-one associations
with property-ref.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Commit: b5d92b35c08b60bdc8c31d91e146b737626db090
https://github.com/hibernate/hibernate-orm/commit/b5d92b35c08b60bdc8c31d9...
Author: Andrea Boriero <andrea(a)hibernate.org>
Date: 2026-07-07 (Tue, 07 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/jaxb/hbm/transform/HbmXmlTransformer.java
Log Message:
-----------
HHH-20656 HbmXmlTranformer should generate mapped-by for constrained one-to-one inverse side
When the target entity has a constrained one-to-one (FK on PK), the
non-constrained side is the inverse and should have mapped-by. The
transformer now detects this via the boot model's ForeignKeyDirection
and finds the constrained property name on the target entity.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply(a)anthropic.com>
Compare: https://github.com/hibernate/hibernate-orm/compare/2559da74e4d3...b5d92b3...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
2 days, 10 hours