-
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 #42400 from gsmet/proper-session
Use the proper PU for executeUpdate on entityClass
- Loading branch information
Showing
70 changed files
with
147 additions
and
76 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
10 changes: 10 additions & 0 deletions
10
...ts/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/custompu/CustomPuEntity.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,10 @@ | ||
package io.quarkus.it.panache.custompu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
import io.quarkus.hibernate.orm.panache.PanacheEntity; | ||
|
||
@Entity | ||
public class CustomPuEntity extends PanacheEntity { | ||
public String string; | ||
} |
2 changes: 1 addition & 1 deletion
2
...uarkus/it/panache/AbstractRepository.java → ...panache/defaultpu/AbstractRepository.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
2 changes: 1 addition & 1 deletion
2
...io/quarkus/it/panache/AccessorEntity.java → .../it/panache/defaultpu/AccessorEntity.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
2 changes: 1 addition & 1 deletion
2
...n/java/io/quarkus/it/panache/Address.java → ...quarkus/it/panache/defaultpu/Address.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ava/io/quarkus/it/panache/AddressDao.java → ...rkus/it/panache/defaultpu/AddressDao.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
2 changes: 1 addition & 1 deletion
2
...main/java/io/quarkus/it/panache/Beer.java → ...io/quarkus/it/panache/defaultpu/Beer.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
2 changes: 1 addition & 1 deletion
2
...io/quarkus/it/panache/BeerRepository.java → .../it/panache/defaultpu/BeerRepository.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...main/java/io/quarkus/it/panache/Book.java → ...io/quarkus/it/panache/defaultpu/Book.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
2 changes: 1 addition & 1 deletion
2
...n/java/io/quarkus/it/panache/BookDao.java → ...quarkus/it/panache/defaultpu/BookDao.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
2 changes: 1 addition & 1 deletion
2
...s/it/panache/Bug5274EntityRepository.java → ...he/defaultpu/Bug5274EntityRepository.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
2 changes: 1 addition & 1 deletion
2
...it/panache/Bug5885AbstractRepository.java → .../defaultpu/Bug5885AbstractRepository.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
2 changes: 1 addition & 1 deletion
2
...s/it/panache/Bug5885EntityRepository.java → ...he/defaultpu/Bug5885EntityRepository.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
2 changes: 1 addition & 1 deletion
2
.../io/quarkus/it/panache/Bug7721Entity.java → ...s/it/panache/defaultpu/Bug7721Entity.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.Objects; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...s/it/panache/Bug7721EntitySuperClass.java → ...he/defaultpu/Bug7721EntitySuperClass.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.Objects; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...uarkus/it/panache/Bug7721OtherEntity.java → ...panache/defaultpu/Bug7721OtherEntity.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../main/java/io/quarkus/it/panache/Cat.java → .../io/quarkus/it/panache/defaultpu/Cat.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
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/it/panache/CatDto.java → .../quarkus/it/panache/defaultpu/CatDto.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
2 changes: 1 addition & 1 deletion
2
.../java/io/quarkus/it/panache/CatOwner.java → ...uarkus/it/panache/defaultpu/CatOwner.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...quarkus/it/panache/CatProjectionBean.java → .../panache/defaultpu/CatProjectionBean.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
2 changes: 1 addition & 1 deletion
2
.../main/java/io/quarkus/it/panache/Dog.java → .../io/quarkus/it/panache/defaultpu/Dog.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
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/it/panache/DogDao.java → .../quarkus/it/panache/defaultpu/DogDao.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
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/it/panache/DogDto.java → .../quarkus/it/panache/defaultpu/DogDto.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
2 changes: 1 addition & 1 deletion
2
...n/java/io/quarkus/it/panache/DogDto2.java → ...quarkus/it/panache/defaultpu/DogDto2.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
2 changes: 1 addition & 1 deletion
2
...o/quarkus/it/panache/DuplicateEntity.java → ...it/panache/defaultpu/DuplicateEntity.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
2 changes: 1 addition & 1 deletion
2
...arkus/it/panache/DuplicateRepository.java → ...anache/defaultpu/DuplicateRepository.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
2 changes: 1 addition & 1 deletion
2
...ain/java/io/quarkus/it/panache/Fruit.java → ...o/quarkus/it/panache/defaultpu/Fruit.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../io/quarkus/it/panache/GenericEntity.java → ...s/it/panache/defaultpu/GenericEntity.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
2 changes: 1 addition & 1 deletion
2
...ava/io/quarkus/it/panache/JAXBEntity.java → ...rkus/it/panache/defaultpu/JAXBEntity.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
2 changes: 1 addition & 1 deletion
2
.../it/panache/MockablePersonRepository.java → ...e/defaultpu/MockablePersonRepository.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../quarkus/it/panache/NamedQueryEntity.java → ...t/panache/defaultpu/NamedQueryEntity.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
2 changes: 1 addition & 1 deletion
2
...t/panache/NamedQueryMappedSuperClass.java → ...defaultpu/NamedQueryMappedSuperClass.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
2 changes: 1 addition & 1 deletion
2
...rkus/it/panache/NamedQueryRepository.java → ...nache/defaultpu/NamedQueryRepository.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
2 changes: 1 addition & 1 deletion
2
...panache/NamedQueryWith2QueriesEntity.java → ...faultpu/NamedQueryWith2QueriesEntity.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
2 changes: 1 addition & 1 deletion
2
...che/NamedQueryWith2QueriesRepository.java → ...tpu/NamedQueryWith2QueriesRepository.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
2 changes: 1 addition & 1 deletion
2
...rkus/it/panache/NoPagingTestEndpoint.java → ...nache/defaultpu/NoPagingTestEndpoint.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
2 changes: 1 addition & 1 deletion
2
...kus/it/panache/ObjectWithCompositeId.java → ...ache/defaultpu/ObjectWithCompositeId.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
2 changes: 1 addition & 1 deletion
2
...us/it/panache/ObjectWithEmbeddableId.java → ...che/defaultpu/ObjectWithEmbeddableId.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
2 changes: 1 addition & 1 deletion
2
.../java/io/quarkus/it/panache/PageItem.java → ...uarkus/it/panache/defaultpu/PageItem.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Entity; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/it/panache/Person.java → .../quarkus/it/panache/defaultpu/Person.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
2 changes: 1 addition & 1 deletion
2
...java/io/quarkus/it/panache/PersonDTO.java → ...arkus/it/panache/defaultpu/PersonDTO.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
2 changes: 1 addition & 1 deletion
2
...quarkus/it/panache/PersonDescription.java → .../panache/defaultpu/PersonDescription.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Embeddable; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...it/panache/PersonDescriptionEmbedded.java → .../defaultpu/PersonDescriptionEmbedded.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import jakarta.persistence.Embeddable; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ava/io/quarkus/it/panache/PersonName.java → ...rkus/it/panache/defaultpu/PersonName.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
2 changes: 1 addition & 1 deletion
2
.../quarkus/it/panache/PersonRepository.java → ...t/panache/defaultpu/PersonRepository.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.List; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...in/java/io/quarkus/it/panache/Status.java → .../quarkus/it/panache/defaultpu/Status.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
public enum Status { | ||
LIVING, | ||
|
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
2 changes: 1 addition & 1 deletion
2
...main/java/io/quarkus/it/panache/User.java → ...io/quarkus/it/panache/defaultpu/User.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
2 changes: 1 addition & 1 deletion
2
...io/quarkus/it/panache/UserRepository.java → .../it/panache/defaultpu/UserRepository.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.quarkus.it.panache; | ||
package io.quarkus.it.panache.defaultpu; | ||
|
||
import java.util.Optional; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../it/panache/fk/issue35812/SomeEntity.java → ...e/defaultpu/fk/issue35812/SomeEntity.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
33 changes: 33 additions & 0 deletions
33
...hibernate-orm-panache/src/main/java/io/quarkus/it/panache/resources/CustomPuResource.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,33 @@ | ||
package io.quarkus.it.panache.resources; | ||
|
||
import java.util.List; | ||
|
||
import jakarta.transaction.Transactional; | ||
import jakarta.ws.rs.PATCH; | ||
import jakarta.ws.rs.POST; | ||
import jakarta.ws.rs.Path; | ||
import jakarta.ws.rs.PathParam; | ||
|
||
import io.quarkus.it.panache.custompu.CustomPuEntity; | ||
|
||
@Path("/custom-pu") | ||
public class CustomPuResource { | ||
|
||
@Transactional | ||
@POST | ||
@Path("/{string}") | ||
public CustomPuEntity create(@PathParam("string") String string) { | ||
CustomPuEntity entity = new CustomPuEntity(); | ||
entity.string = string; | ||
entity.persist(); | ||
return entity; | ||
} | ||
|
||
@Transactional | ||
@PATCH | ||
@Path("/{string}") | ||
public List<CustomPuEntity> updateAll(@PathParam("string") String string) { | ||
CustomPuEntity.update("set string = ?1 where 1 = 1", string); | ||
return CustomPuEntity.findAll().list(); | ||
} | ||
} |
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
Oops, something went wrong.