public Builder(Configuration configuration, String property) { resultMapping.configuration = configuration; resultMapping.property = property; resultMapping.flags = new ArrayList<org.apache.ibatis.mapping.ResultFlag>(); resultMapping.composites = new ArrayList<org.apache.ibatis.mapping.ResultMapping>(); resultMapping.lazy = configuration.isLazyLoadingEnabled(); }
public org.apache.ibatis.mapping.ResultMapping build() { // lock down collections resultMapping.flags = Collections.unmodifiableList(resultMapping.flags); resultMapping.composites = Collections.unmodifiableList(resultMapping.composites); resolveTypeHandler(); validate(); return resultMapping; }
public Builder composites(List<org.apache.ibatis.mapping.ResultMapping> composites) { resultMapping.composites = composites; return this; }