Added support auto generating Q classes for QueryDSL
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
package org.baeldung.model;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.mysema.query.types.path.EntityPathBase;
|
||||
import com.mysema.query.types.path.StringPath;
|
||||
|
||||
@Generated("com.mysema.query.codegen.EntitySerializer")
|
||||
public class QUser extends EntityPathBase<User> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public static final QUser user = new QUser("user");
|
||||
|
||||
public final StringPath name = createString("name");
|
||||
|
||||
public QUser(String variable) {
|
||||
super(User.class, variable);
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,9 @@ package org.baeldung.model;
|
||||
import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.mongodb.core.mapping.Document;
|
||||
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
|
||||
@QueryEntity
|
||||
@Document
|
||||
public class User {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user