@Test public void defaultSelect() { String rqlSelect = ""; DefaultSelectParser selectParser = new DefaultSelectParser(); Map<String, Path> mappings = ImmutableMap.<String, Path>builder() .put("contact.age", QContactDocument.contactDocument.age) .put("contact.name", QContactDocument.contactDocument.name) .put("contact.bday", QContactDocument.contactDocument.bday) .put("contact.company", QContactDocument.contactDocument.company) .build(); Expression selectExpression = selectParser.parse(rqlSelect, QuerydslSelectContext.withMapping(QContactDocument.contactDocument, mappings)); assertNotNull(selectExpression); assertEquals(Projections.bean(QContactDocument.contactDocument, QContactDocument.contactDocument.age, QContactDocument.contactDocument.name, QContactDocument.contactDocument.bday, QContactDocument.contactDocument.company), selectExpression); }
public static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings) { return (QuerydslSelectContext) new QuerydslSelectContext() .setSelectParam(new QuerydslSelectParam() .setRootPath(rootPath) .setMapping(mappings)) .setSelectBuilder(new QuerydslSelectBuilder()); }
QuerydslSelectContext extends SelectContext<Expression, QuerydslSelectParam> { public static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings) { return (QuerydslSelectContext) new QuerydslSelectContext() .setSelectParam(new QuerydslSelectParam() .setRootPath(rootPath) .setMapping(mappings)) .setSelectBuilder(new QuerydslSelectBuilder()); } }
QuerydslSelectContext extends SelectContext<Expression, QuerydslSelectParam> { public static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings) { return (QuerydslSelectContext) new QuerydslSelectContext() .setSelectParam(new QuerydslSelectParam() .setRootPath(rootPath) .setMapping(mappings)) .setSelectBuilder(new QuerydslSelectBuilder()); }  }
QuerydslSelectContext extends SelectContext<Expression, QuerydslSelectParam> { public static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings) { return (QuerydslSelectContext) new QuerydslSelectContext() .setSelectParam(new QuerydslSelectParam() .setRootPath(rootPath) .setMapping(mappings)) .setSelectBuilder(new QuerydslSelectBuilder()); }  static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings); }
QuerydslSelectContext extends SelectContext<Expression, QuerydslSelectParam> { public static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings) { return (QuerydslSelectContext) new QuerydslSelectContext() .setSelectParam(new QuerydslSelectParam() .setRootPath(rootPath) .setMapping(mappings)) .setSelectBuilder(new QuerydslSelectBuilder()); }  static QuerydslSelectContext withMapping(EntityPath rootPath, Map<String, Path> mappings);  }