Search in sources :

Example 36 with StringPath

use of com.querydsl.core.types.dsl.StringPath in project spring-data-mongodb by spring-projects.

the class SpringDataMongodbSerializerUnitTests method uses_idAsKeyForIdProperty.

@Test
public void uses_idAsKeyForIdProperty() {
    StringPath path = QPerson.person.id;
    assertThat(serializer.getKeyForPath(path, path.getMetadata()), is("_id"));
}
Also used : StringPath(com.querydsl.core.types.dsl.StringPath) Test(org.junit.Test)

Aggregations

StringPath (com.querydsl.core.types.dsl.StringPath)36 Test (org.junit.Test)36 DefaultQueryMetadata (com.querydsl.core.DefaultQueryMetadata)6 QueryMetadata (com.querydsl.core.QueryMetadata)6 Tuple (com.querydsl.core.Tuple)4 QTuple (com.querydsl.core.types.QTuple)2 LuceneSerializer (com.querydsl.lucene5.LuceneSerializer)2 Ignore (org.junit.Ignore)2 BasicDBObject (com.mongodb.BasicDBObject)1 DBObject (com.mongodb.DBObject)1 ExcludeIn (com.querydsl.core.testutil.ExcludeIn)1 JavaTemplates (com.querydsl.core.types.JavaTemplates)1 Predicate (com.querydsl.core.types.Predicate)1 BooleanExpression (com.querydsl.core.types.dsl.BooleanExpression)1 BooleanOperation (com.querydsl.core.types.dsl.BooleanOperation)1 PathBuilder (com.querydsl.core.types.dsl.PathBuilder)1 PhraseElement (com.querydsl.lucene5.PhraseElement)1 TermElement (com.querydsl.lucene5.TermElement)1 BigDecimal (java.math.BigDecimal)1 ObjectId (org.bson.types.ObjectId)1