x-ream / sqli

orm sql query builder, API: QB, QB.X, QrB
http://sqli.xream.io
Apache License 2.0
1.9k stars 813 forks source link

ResultMapCriteria one table unworkable #34

Closed sim-wangyan closed 3 years ago

sim-wangyan commented 3 years ago

CriteriaBuilder.ResultMapBuilder builder = CriteriaBuilder.resultMapBuilder(); builder.resultKey("id"); builder.resultKey("name"); builder.eq("id", 1); Criteria criteria = builder.build();// OK

Criteria.ResultMapCriteria criteria = builder.build();// unworkable if add code: builder.sourceBuilder().source("foo"); //unworkable

Anyway, CriteriaBuilder.ResultMapBuilder should get Criteria.ResultMapCriteria

ResultMapBuilder designed for JOIN, and should support one table.