-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-17960: Fix proper default session type for JD repositories even i…
…n Quarkus And tests
- Loading branch information
Showing
10 changed files
with
132 additions
and
9 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
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
6 changes: 6 additions & 0 deletions
6
...rator/src/quarkusHrPanache/java/io/quarkus/hibernate/reactive/panache/_PanacheEntity.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,6 @@ | ||
package io.quarkus.hibernate.reactive.panache; | ||
|
||
// workaround until Quarkus is published with this class | ||
public interface _PanacheEntity { | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...arkusHrPanache/java/org/hibernate/processor/test/hrPanache/JakartaDataBookRepository.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,24 @@ | ||
// Not supported yet: https://hibernate.atlassian.net/browse/HHH-17960 | ||
//package org.hibernate.processor.test.hrPanache; | ||
// | ||
//import java.util.List; | ||
// | ||
//import org.hibernate.reactive.mutiny.Mutiny; | ||
// | ||
//import io.smallrye.mutiny.Uni; | ||
//import jakarta.data.repository.CrudRepository; | ||
//import jakarta.data.repository.Find; | ||
//import jakarta.data.repository.Query; | ||
//import jakarta.data.repository.Repository; | ||
// | ||
//@Repository | ||
//public interface JakartaDataBookRepository extends CrudRepository<PanacheBook, Long> { | ||
// | ||
// public Uni<Mutiny.StatelessSession> session(); | ||
// | ||
// @Find | ||
// public Uni<List<PanacheBook>> findBook(String isbn); | ||
// | ||
// @Query("WHERE isbn = :isbn") | ||
// public Uni<List<PanacheBook>> hqlBook(String isbn); | ||
//} |
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
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
6 changes: 6 additions & 0 deletions
6
...generator/src/quarkusOrmPanache/java/io/quarkus/hibernate/orm/panache/_PanacheEntity.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,6 @@ | ||
package io.quarkus.hibernate.orm.panache; | ||
|
||
// workaround until Quarkus is published with this class | ||
public interface _PanacheEntity { | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...kusOrmPanache/java/org/hibernate/processor/test/ormPanache/JakartaDataBookRepository.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,18 @@ | ||
package org.hibernate.processor.test.ormPanache; | ||
|
||
import java.util.List; | ||
|
||
|
||
import jakarta.data.repository.CrudRepository; | ||
import jakarta.data.repository.Find; | ||
import jakarta.data.repository.Query; | ||
import jakarta.data.repository.Repository; | ||
|
||
@Repository | ||
public interface JakartaDataBookRepository extends CrudRepository<PanacheBook, Long> { | ||
@Find | ||
public List<PanacheBook> findBook(String isbn); | ||
|
||
@Query("WHERE isbn = :isbn") | ||
public List<PanacheBook> hqlBook(String isbn); | ||
} |
6 changes: 2 additions & 4 deletions
6
...rator/src/quarkusOrmPanache/java/org/hibernate/processor/test/ormPanache/PanacheBook.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
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