Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ include::{example-dir-basic-mapping}/basic/InetAddressMappingTests.java[tags=bas
Hibernate will only use the `JSON` type if explicitly configured through `@JdbcTypeCode( SqlTypes.JSON )`.
The JSON library used for serialization/deserialization is detected automatically,
but can be overridden by setting `hibernate.type.json_format_mapper`
as can be read in the <<appendices/Configurations.adoc#misc-options,Configurations>> section.
as can be read in the <<appendices/SettingsReference.adoc#settings-hibernate.type.json_format_mapper,Configurations>> section.

[[basic-json-example]]
.Mapping JSON
Expand All @@ -1373,7 +1373,7 @@ include::{example-dir-basic-mapping}/basic/JsonMappingTests.java[tags=basic-json
Hibernate will only use the `XML` type if explicitly configured through `@JdbcTypeCode( SqlTypes.SQLXML )`.
The XML library used for serialization/deserialization is detected automatically,
but can be overridden by setting `hibernate.type.xml_format_mapper`
as can be read in the <<appendices/Configurations.adoc#misc-options,Configurations>> section.
as can be read in the <<appendices/SettingsReference.adoc#settings-hibernate.type.xml_format_mapper,Configurations>> section.

[[basic-xml-example]]
.Mapping XML
Expand Down Expand Up @@ -2425,7 +2425,7 @@ include::{extrasdir}/basic/basic-auto-quoting-persistence-example.sql[indent=0]

As you can see, both the table name and all the column have been quoted.

For more about quoting-related configuration properties, check out the <<appendices/Configurations.adoc#configurations-mapping,Mapping configurations>> section as well.
For more about quoting-related configuration properties, check out the <<appendices/SettingsReference.adoc#settings-mapping,Mapping configurations>> section as well.



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Otherwise, the no-arg form is used.
=== Driver Configuration
`hibernate.connection.driver_class`:: The name of the JDBC Driver class to use
`hibernate.connection.url`:: The JDBC connection url
`hibernate.connection.*`:: All such setting names (except the <<appendices/Configurations.adoc#configurations-database-connection,predefined ones>>) will have the `hibernate.connection.` prefix stripped. The remaining name and the original value will be passed to the driver as a JDBC connection property
`hibernate.connection.*`:: All such setting names (except the <<appendices/SettingsReference.adoc#settings-hibernate.connection,predefined ones>>) will have the `hibernate.connection.` prefix stripped. The remaining name and the original value will be passed to the driver as a JDBC connection property

NOTE: Not all properties apply to all situations. For example, if you are providing a data source, `hibernate.connection.driver_class` setting will not be used.

Expand Down Expand Up @@ -155,7 +155,7 @@ The `Connection` will be acquired as soon as it is needed and will be released a
The `Connection` will be acquired as soon as it is needed and will be released after each transaction is completed.

If you don't want to use the default connection handling mode, you can specify a connection handling mode via the `hibernate.connection.handling_mode` configuration property. For more details, check out the
<<appendices/Configurations.adoc#configurations-database-connection,Database connection properties>> section.
<<appendices/SettingsReference.adoc#settings-jdbc,Database connection properties>> section.

==== Transaction type and connection handling

Expand Down Expand Up @@ -206,4 +206,4 @@ Hibernate abstracts over variations between dialects of SQL via the class `org.h
- Additional community-supported ``Dialect``s are available in the separate module `hibernate-community-dialects`.

In Hibernate 6, it's no longer necessary to explicitly specify a dialect using the configuration property `hibernate.dialect`, and so setting that property is now discouraged.
(An exception is the case of custom user-written ``Dialect``s.)
(An exception is the case of custom user-written ``Dialect``s.)
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,4 @@ Starting with Hibernate 5.2, the Hibernate `Session` extends the Jakarta Persist
the `HibernateException` or `SQLException` can be wrapped in a Jakarta Persistence {jpaJavadocUrlPrefix}PersistenceException.html[`PersistenceException`] when thrown
by `Session` methods that implement `EntityManager` methods (e.g., https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/Session.html#merge-java.lang.Object-[Session.merge(Object object)],
https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/Session.html#flush--[Session.flush()]).

If your `SessionFactory` is built via Hibernate's native bootstrapping, and you don't want the Hibernate exceptions to be wrapped in the Jakarta Persistence `PersistenceException`, you need to set the
`hibernate.native_exception_handling_51_compliance` configuration property to `true`. See the
<<appendices/Configurations.adoc#configurations-exception-handling,`hibernate.native_exception_handling_51_compliance`>> configuration property for more details.
====
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ it's much more flexible to manage the schema using incremental migration scripts
====

Traditionally, the process of generating schema from entity mapping has been called `HBM2DDL`.
To get a list of Hibernate-native and Jakarta Persistence-specific configuration properties consider reading the <<appendices/Configurations.adoc#configurations-hbmddl,Configurations>> section.
To get a list of Hibernate-native and Jakarta Persistence-specific configuration properties consider reading the <<appendices/SettingsReference.adoc#settings-schema,Configurations>> section.

Considering the following Domain Model:

Expand Down
Loading