|
18 | 18 |
|
19 | 19 | import com.querydsl.core.types.Path;
|
20 | 20 | import com.querydsl.core.types.PathMetadata;
|
21 |
| -import com.querydsl.core.types.PathMetadataFactory; |
22 | 21 | import com.querydsl.core.types.dsl.EntityPathBase;
|
23 | 22 | import com.querydsl.core.types.dsl.NumberPath;
|
| 23 | +import com.querydsl.core.types.dsl.PathInits; |
24 | 24 | import com.querydsl.core.types.dsl.StringPath;
|
25 | 25 |
|
| 26 | +import static com.querydsl.core.types.PathMetadataFactory.forVariable; |
| 27 | + |
26 | 28 | /**
|
27 |
| - * Generated by Querydsl. |
| 29 | + * QBook is a Querydsl query type for Book |
28 | 30 | */
|
29 | 31 | public class QBook extends EntityPathBase<Book> {
|
30 | 32 | private static final long serialVersionUID = 1773522017L;
|
| 33 | + private static final PathInits INITS = PathInits.DIRECT2; |
31 | 34 | public static final QBook book = new QBook("book");
|
32 |
| - public final StringPath author = this.createString("author"); |
33 |
| - public final NumberPath<Long> id = this.createNumber("id", Long.class); |
34 |
| - public final StringPath name = this.createString("name"); |
| 35 | + public final org.springframework.graphql.QAuthor author; |
| 36 | + public final NumberPath<Long> id = createNumber("id", Long.class); |
| 37 | + public final StringPath name = createString("name"); |
35 | 38 |
|
36 | 39 | public QBook(String variable) {
|
37 |
| - super(Book.class, PathMetadataFactory.forVariable(variable)); |
| 40 | + this(Book.class, forVariable(variable), INITS); |
38 | 41 | }
|
39 | 42 |
|
40 | 43 | public QBook(Path<? extends Book> path) {
|
41 |
| - super(path.getType(), path.getMetadata()); |
| 44 | + this(path.getType(), path.getMetadata(), PathInits.getFor(path.getMetadata(), INITS)); |
42 | 45 | }
|
43 | 46 |
|
44 | 47 | public QBook(PathMetadata metadata) {
|
45 |
| - super(Book.class, metadata); |
| 48 | + this(metadata, PathInits.getFor(metadata, INITS)); |
| 49 | + } |
| 50 | + |
| 51 | + public QBook(PathMetadata metadata, PathInits inits) { |
| 52 | + this(Book.class, metadata, inits); |
46 | 53 | }
|
| 54 | + |
| 55 | + public QBook(Class<? extends Book> type, PathMetadata metadata, PathInits inits) { |
| 56 | + super(type, metadata, inits); |
| 57 | + this.author = inits.isInitialized("author") ? new org.springframework.graphql.QAuthor(forProperty("author")) : null; |
| 58 | + } |
| 59 | + |
47 | 60 | }
|
0 commit comments