-
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 #26510 from DavideD/panache-project
Improve Panache projection with Hibernate ORM and Reactive
- Loading branch information
Showing
11 changed files
with
315 additions
and
16 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
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
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
35 changes: 35 additions & 0 deletions
35
...on-tests/hibernate-orm-panache/src/main/java/io/quarkus/it/panache/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.quarkus.it.panache; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public class CatProjectionBean { | ||
|
||
private final String name; | ||
|
||
private final String ownerName; | ||
|
||
private final Double weight; | ||
|
||
public CatProjectionBean(String name, String ownerName) { | ||
this(name, ownerName, null); | ||
} | ||
|
||
public CatProjectionBean(String name, String ownerName, Double weight) { | ||
this.name = name; | ||
this.ownerName = ownerName; | ||
this.weight = weight; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getOwnerName() { | ||
return ownerName; | ||
} | ||
|
||
public Double getWeight() { | ||
return weight; | ||
} | ||
} |
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
23 changes: 23 additions & 0 deletions
23
...nate-reactive-panache/src/main/java/io/quarkus/it/panache/reactive/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.quarkus.it.panache.reactive; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
|
||
@RegisterForReflection | ||
public class CatProjectionBean { | ||
|
||
public final String name; | ||
|
||
public final String ownerName; | ||
|
||
public final Double weight; | ||
|
||
public CatProjectionBean(String name, String ownerName) { | ||
this(name, ownerName, null); | ||
} | ||
|
||
public CatProjectionBean(String name, String ownerName, Double weight) { | ||
this.name = name; | ||
this.ownerName = ownerName; | ||
this.weight = weight; | ||
} | ||
} |
Oops, something went wrong.