Package com.mysema.query.types.path

Examples of com.mysema.query.types.path.PathBuilderFactory


   *
   * @param domainClass must not be {@literal null}.
   */
  public QueryDslRepositorySupport(Class<?> domainClass) {
    Assert.notNull(domainClass);
    this.builder = new PathBuilderFactory().create(domainClass);
  }
View Full Code Here


  }

  @Test
  public void executesStringBasedPredicatesCorrectly() throws Exception {

    PathBuilder<User> builder = new PathBuilderFactory().create(User.class);

    BooleanExpression isCalledDave = builder.getString("firstname").eq("Dave");
    BooleanExpression isBeauford = builder.getString("lastname").eq("Beauford");

    List<User> result = repository.findAll(isCalledDave.or(isBeauford));
View Full Code Here

    private BooleanPath married;

    @Before
    public void setUp() {
        entity = new PathBuilderFactory().create(Entity.class);
        name = entity.getString("name");
        name2 = entity.getString("name2");
        age = entity.getNumber("age", Integer.class);
        married = entity.getBoolean("married");
    }
View Full Code Here

TOP

Related Classes of com.mysema.query.types.path.PathBuilderFactory

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.