Let Querydsl annotation processor work with @Document annotation.

This commit is contained in:
Oliver Gierke
2011-03-25 08:26:42 +01:00
parent 986203833a
commit 511128f4e7
2 changed files with 5 additions and 5 deletions

View File

@@ -27,10 +27,11 @@ import javax.lang.model.SourceVersion;
import javax.lang.model.element.TypeElement; import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic; import javax.tools.Diagnostic;
import org.springframework.data.document.mongodb.mapping.Document;
import com.mysema.query.annotations.QueryEmbeddable; import com.mysema.query.annotations.QueryEmbeddable;
import com.mysema.query.annotations.QueryEmbedded; import com.mysema.query.annotations.QueryEmbedded;
import com.mysema.query.annotations.QueryEntities; import com.mysema.query.annotations.QueryEntities;
import com.mysema.query.annotations.QueryEntity;
import com.mysema.query.annotations.QuerySupertype; import com.mysema.query.annotations.QuerySupertype;
import com.mysema.query.annotations.QueryTransient; import com.mysema.query.annotations.QueryTransient;
import com.mysema.query.apt.DefaultConfiguration; import com.mysema.query.apt.DefaultConfiguration;
@@ -60,7 +61,7 @@ public class MongoAnnotationProcessor extends AbstractProcessor {
DefaultConfiguration configuration = DefaultConfiguration configuration =
new DefaultConfiguration(roundEnv, processingEnv.getOptions(), new DefaultConfiguration(roundEnv, processingEnv.getOptions(),
Collections.<String> emptySet(), QueryEntities.class, Collections.<String> emptySet(), QueryEntities.class,
QueryEntity.class, QuerySupertype.class, Document.class, QuerySupertype.class,
QueryEmbeddable.class, QueryEmbedded.class, QueryEmbeddable.class, QueryEmbedded.class,
QueryTransient.class); QueryTransient.class);

View File

@@ -18,8 +18,7 @@ package org.springframework.data.document.mongodb.repository;
import java.util.Set; import java.util.Set;
import org.bson.types.ObjectId; import org.bson.types.ObjectId;
import org.springframework.data.document.mongodb.mapping.Document;
import com.mysema.query.annotations.QueryEntity;
/** /**
@@ -27,7 +26,7 @@ import com.mysema.query.annotations.QueryEntity;
* *
* @author Oliver Gierke * @author Oliver Gierke
*/ */
@QueryEntity @Document
public class Person { public class Person {
private String id; private String id;