-
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.
[#26284] Tests for .project with HQL queries having 'select'
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 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
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