Skip to content

Commit 031fe37

Browse files
committed
test: add QueryProjectionBuilderTestEntity for test
1 parent bfa028e commit 031fe37

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package com.querydsl.apt.domain;
2+
3+
import com.querydsl.core.annotations.QueryProjection;
4+
5+
public class QueryProjectionBuilderTestEntity {
6+
private String property;
7+
private int intProperty;
8+
private Test test;
9+
10+
@QueryProjection(useBuilder = true, builderName = "Test1")
11+
public QueryProjectionBuilderTestEntity(String property) {
12+
this.property = property;
13+
}
14+
15+
@QueryProjection(useBuilder = true, builderName = "Test2")
16+
public QueryProjectionBuilderTestEntity(String property, int intProperty) {
17+
this.property = property;
18+
this.intProperty = intProperty;
19+
}
20+
21+
@QueryProjection(useBuilder = true, builderName = "Test3")
22+
public QueryProjectionBuilderTestEntity(String property, int intProperty, Test test) {
23+
this.property = property;
24+
this.intProperty = intProperty;
25+
this.test = test;
26+
}
27+
28+
public static class Test {
29+
private String property;
30+
private int intProperty;
31+
}
32+
}

0 commit comments

Comments
 (0)