Package org.objectquery.generic.domain

Examples of org.objectquery.generic.domain.Person


  @Test
  public void testConditionsSubquery() {
    MockQueryBuilder builder = new MockQueryBuilder();
    SelectQuery<Person> query = new GenericSelectQuery<Person, Object>(builder, Person.class);
    Person toSearch = query.target();
    BaseSelectQuery<Person> subQuery = query.subQuery(Person.class);
    query.eq(toSearch.getMom(), subQuery);
    query.contains(toSearch.getFriends(), subQuery);
    query.in(toSearch.getMom(), subQuery);
    // query.like(toSearch.getMum(), new
    // GenericObjectQuery<Person>(Person.class));
    query.gt(toSearch.getMom(), subQuery);
    query.gtEq(toSearch.getMom(), subQuery);
    query.lt(toSearch.getMom(), subQuery);
    query.ltEq(toSearch.getMom(), subQuery);
    query.notEq(toSearch.getMom(), subQuery);
    query.notIn(toSearch.getMom(), subQuery);
    query.notContains(toSearch.getMom().getFriends(), subQuery);
    // query.notLike(toSearch.getMum().getName(),
    // toSearch.getDud().getName());
    // query.likeNc(toSearch.getMum().getName(),
    // toSearch.getDud().getName());
    // query.notLikeNc(toSearch.getMum().getName(),
View Full Code Here

TOP

Related Classes of org.objectquery.generic.domain.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.