use of com.querydsl.core.types.dsl.StringPath in project querydsl by querydsl.
the class LuceneSerializerNotTokenizedTest method multiple_field_search_from_movies.
@Test
public void multiple_field_search_from_movies() throws Exception {
StringPath movie = Expressions.stringPath("movie");
testQuery(movie.in("Interview with the Vampire"), "movie:Interview with the Vampire", 1);
testQuery(movie.eq("Up in the Air"), "movie:Up in the Air", 1);
}
use of com.querydsl.core.types.dsl.StringPath in project querydsl by querydsl.
the class LuceneSerializerTest method eq_with_deep_path.
@Test
public void eq_with_deep_path() throws Exception {
StringPath deepPath = entityPath.get("property1", Object.class).getString("property2");
testQuery(deepPath.eq("good"), "property1.property2:good", 0);
}
use of com.querydsl.core.types.dsl.StringPath in project querydsl by querydsl.
the class UpdateBase method setNullEmptyRootPath.
@Test
@SkipForQuoted
@ExcludeIn({ DERBY })
public void setNullEmptyRootPath() {
StringPath name = Expressions.stringPath("name");
long count = query().from(survey).fetchCount();
assertEquals(count, execute(update(survey).setNull(name)));
}
Aggregations