-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Quarkus application framework - step 5: use Panache and @transact…
- Loading branch information
1 parent
7e931b5
commit d33f435
Showing
4 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...c/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartPanacheRepository.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,12 @@ | ||
package eu.happycoders.shop.adapter.out.persistence.jpa; | ||
|
||
import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
/** | ||
* Panache repository for {@link CartJpaEntity}. | ||
* | ||
* @author Sven Woltmann | ||
*/ | ||
@ApplicationScoped | ||
public class JpaCartPanacheRepository implements PanacheRepositoryBase<CartJpaEntity, Integer> {} |
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
13 changes: 13 additions & 0 deletions
13
...ain/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductPanacheRepository.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,13 @@ | ||
package eu.happycoders.shop.adapter.out.persistence.jpa; | ||
|
||
import io.quarkus.hibernate.orm.panache.PanacheRepositoryBase; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
/** | ||
* Panache repository for {@link ProductJpaEntity}. | ||
* | ||
* @author Sven Woltmann | ||
*/ | ||
@ApplicationScoped | ||
public class JpaProductPanacheRepository | ||
implements PanacheRepositoryBase<ProductJpaEntity, String> {} |
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