Merge branch 'wip/6.0_merge_main' into wip/6.0
This commit is contained in:
commit
2e74d026f2
|
@ -315,7 +315,7 @@ In the `persistence.xml` configuration file above, the `orm.xml` XML file contai
|
||||||
|
|
||||||
As previously seen, the Hibernate native bootstrap mechanism allows you to customize a great variety of configurations which are passed via the `Metadata` object.
|
As previously seen, the Hibernate native bootstrap mechanism allows you to customize a great variety of configurations which are passed via the `Metadata` object.
|
||||||
|
|
||||||
When using Hibernate as a Jakarta Persistence provider, the `EntityManagerFactory` is backed by a `SessionFactory`. For this reason, you might still want to use the `Metadata` object to pass various settings which cannot be supplied via the standard Hibernate <<appendices/Configurations.adoc, configuration settings>>.
|
When using Hibernate as a Jakarta Persistence provider, the `EntityManagerFactory` is backed by a `SessionFactory`. For this reason, you might still want to use the `Metadata` object to pass various settings which cannot be supplied via the standard Hibernate <<appendices/Configurations.adoc#configurations, configuration settings>>.
|
||||||
|
|
||||||
For this reason, you can use the
|
For this reason, you can use the
|
||||||
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/boot/spi/MetadataBuilderContributor.html[`MetadataBuilderContributor`] class as you can see in the following examples.
|
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/boot/spi/MetadataBuilderContributor.html[`MetadataBuilderContributor`] class as you can see in the following examples.
|
||||||
|
|
|
@ -186,7 +186,7 @@ Use of this feature may or may not be portable from a Jakarta Persistence perspe
|
||||||
==== Composite identifiers with associations
|
==== Composite identifiers with associations
|
||||||
|
|
||||||
Hibernate allows defining a composite identifier out of entity associations.
|
Hibernate allows defining a composite identifier out of entity associations.
|
||||||
In the following example, the `PersonAddress` entity identifier is formed of two `@ManyToOne` associations.
|
In the following example, the `Book` entity identifier is formed of two `@ManyToOne` associations.
|
||||||
|
|
||||||
[[identifiers-composite-id-mapping-example]]
|
[[identifiers-composite-id-mapping-example]]
|
||||||
.Composite identifiers with associations
|
.Composite identifiers with associations
|
||||||
|
|
Loading…
Reference in New Issue