Skip to content

Commit

Permalink
Merge pull request quarkusio#10723 from Mobe91/blaze-persistence-guid…
Browse files Browse the repository at this point in the history
…e-update

Update Blaze-Persistence guide
  • Loading branch information
gsmet authored Jul 15, 2020
2 parents 45c0b03 + ded23a7 commit 672404d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/src/main/asciidoc/blaze-persistence.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ Add the following dependencies to your project:
</dependencies>
----

The use in native images requires a dependency on the entity view annotation processor that may be extracted into a separate `native` profile:

[source,xml]
----
<profiles>
<profile>
<id>native</id>
<dependencies>
<dependency>
<groupId>com.blazebit</groupId>
<artifactId>blaze-persistence-entity-view-processor</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
----

A `CriteriaBuilderFactory` and an `EntityViewManager` will be created based on the configured `EntityManagerFactory` as provided by the link:{quarkus-home-url}/guides/hibernate-orm[Hibernate-ORM extension].

You can then access these beans via injection:
Expand Down

0 comments on commit 672404d

Please sign in to comment.