-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8695 from machi1990/panache/prepare-way-for-multi…
…ple-pu-support Support of multiple persistence units for Hibernate Panache
- Loading branch information
Showing
55 changed files
with
961 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ain/java/io/quarkus/hibernate/orm/deployment/JpaModelPersistenceUnitMappingBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.quarkus.hibernate.orm.deployment; | ||
|
||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
/** | ||
* Internal model to hold the mapping linking a JPA entity to its corresponding persistence units. | ||
*/ | ||
public final class JpaModelPersistenceUnitMappingBuildItem extends SimpleBuildItem { | ||
|
||
private final Map<String, Set<String>> entityToPersistenceUnits; | ||
|
||
public JpaModelPersistenceUnitMappingBuildItem(Map<String, Set<String>> entityToPersistenceUnits) { | ||
this.entityToPersistenceUnits = Collections.unmodifiableMap(entityToPersistenceUnits); | ||
} | ||
|
||
public Map<String, Set<String>> getEntityToPersistenceUnits() { | ||
return entityToPersistenceUnits; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.