Skip to content

Commit f2a72b2

Browse files
committed
Sync documentation of main branch
1 parent 94a6b3e commit f2a72b2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

_versions/main/guides/config-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ Setting `quarkus.profile` to `staging` will activate the `staging` profile.
367367

368368
[NOTE]
369369
====
370-
The `io.smallrye.config.SmallRyeConfig#getProfiles` API provides a way to retrieve the active profiles programmatically.
370+
The `io.quarkus.runtime.configuration.ConfigUtils.getProfiles` API provides a way to retrieve the active profiles programmatically.
371371
====
372372

373373
=== Profile-aware files

_versions/main/guides/hibernate-orm.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,13 @@ EntityManager entityManager;
486486
----
487487
<1> Here again, we use the same `@io.quarkus.hibernate.orm.PersistenceUnit` annotation.
488488

489+
[NOTE]
490+
====
491+
The injected `EntityManager` or `Session` instance is a proxy that requires an active transaction for interaction.
492+
493+
By default it is also possible to use it for read-only operations without a transaction when in a request scope, but this can be disabled by setting `quarkus.hibernate-orm.request-scoped.enabled` to `false`.
494+
====
495+
489496
You can inject the `EntityManagerFactory` of a named persistence unit using the exact same mechanism:
490497

491498
[source,java]

0 commit comments

Comments
 (0)