Let Querydsl annotation processor work with @Document annotation.
This commit is contained in:
@@ -27,10 +27,11 @@ import javax.lang.model.SourceVersion;
|
||||
import javax.lang.model.element.TypeElement;
|
||||
import javax.tools.Diagnostic;
|
||||
|
||||
import org.springframework.data.document.mongodb.mapping.Document;
|
||||
|
||||
import com.mysema.query.annotations.QueryEmbeddable;
|
||||
import com.mysema.query.annotations.QueryEmbedded;
|
||||
import com.mysema.query.annotations.QueryEntities;
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
import com.mysema.query.annotations.QuerySupertype;
|
||||
import com.mysema.query.annotations.QueryTransient;
|
||||
import com.mysema.query.apt.DefaultConfiguration;
|
||||
@@ -60,7 +61,7 @@ public class MongoAnnotationProcessor extends AbstractProcessor {
|
||||
DefaultConfiguration configuration =
|
||||
new DefaultConfiguration(roundEnv, processingEnv.getOptions(),
|
||||
Collections.<String> emptySet(), QueryEntities.class,
|
||||
QueryEntity.class, QuerySupertype.class,
|
||||
Document.class, QuerySupertype.class,
|
||||
QueryEmbeddable.class, QueryEmbedded.class,
|
||||
QueryTransient.class);
|
||||
|
||||
|
||||
@@ -18,8 +18,7 @@ package org.springframework.data.document.mongodb.repository;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bson.types.ObjectId;
|
||||
|
||||
import com.mysema.query.annotations.QueryEntity;
|
||||
import org.springframework.data.document.mongodb.mapping.Document;
|
||||
|
||||
|
||||
/**
|
||||
@@ -27,7 +26,7 @@ import com.mysema.query.annotations.QueryEntity;
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@QueryEntity
|
||||
@Document
|
||||
public class Person {
|
||||
|
||||
private String id;
|
||||
|
||||
Reference in New Issue
Block a user