Closed sim-wangyan closed 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.
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.