You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/hibernate-orm.adoc
+90-2Lines changed: 90 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,8 @@ For a list of the items that you can set in `{config-file}`, see xref:hibernate-
102
102
103
103
An `EntityManagerFactory` will be created based on the Quarkus `datasource` configuration as long as the Hibernate ORM extension is listed among your project dependencies.
104
104
105
-
Unless you set one explicitly, the dialect will be selected based on the JDBC driver.
105
+
The dialect will be selected and configured automatically based on your datasource;
106
+
you may want to <<hibernate-dialect,configure it to more precisely match your database>>.
106
107
107
108
You can then happily inject your `EntityManager`:
108
109
@@ -165,6 +166,93 @@ WARNING: Make sure to wrap methods modifying your database (e.g. `entity.persist
165
166
CDI bean method `@Transactional` will do that for you and make that method a transaction boundary. We recommend doing
166
167
so at your application entry point boundaries like your REST endpoint controllers.
167
168
169
+
[[hibernate-dialect]]
170
+
=== Dialect
171
+
172
+
[[hibernate-dialect-supported-databases]]
173
+
==== Supported databases
174
+
175
+
For xref:datasource.adoc#default-datasource[supported databases],
176
+
the link:{orm-doc-url-prefix}##database-dialect[Hibernate ORM dialect]
177
+
does not need to be set explicitly:
178
+
it is selected automatically based on the datasource.
179
+
180
+
By default, the dialect is configured to target the minimum supported version of the database.
181
+
182
+
In order for Hibernate ORM to generate more efficient SQL,
183
+
to avoid workarounds and to take advantage of more database features,
0 commit comments