org.apache.ibatis.annotations.ResultMap Java Examples

The following examples show how to use org.apache.ibatis.annotations.ResultMap. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CoffeeMapper.java    From Java-API-Test-Examples with Apache License 2.0 6 votes vote down vote up
/**
 * This method was generated by MyBatis Generator.
 * This method corresponds to the database table T_COFFEE
 *
 * @mbg.generated Sun Dec 08 00:33:16 CST 2019
 */
@Select({
    "select",
    "ID, NAME, PRICE, CREATE_TIME, UPDATE_TIME",
    "from T_COFFEE",
    "where ID = #{id,jdbcType=BIGINT}"
})
@ResultMap("com.zuozewei.springbootdatadrivendemo.db.auto.mapper.CoffeeMapper.BaseResultMap")
Coffee selectByPrimaryKey(Long id);
 
Example #2
Source File: BrowseNodeDAO.java    From nexus-public with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Find the direct children of a browse node.
 */
@SelectProvider(type = BrowseNodeDAOQueryBuilder.class, method = "findChildrenQuery")
@ResultMap("datastoreBrowseNode")
Iterable<DatastoreBrowseNode> findChildren(
    @Param("repository") ContentRepository repository,
    @Param("path") String path,
    @Param("maxNodes") int maxNodes,
    @Param("contentSelectors") List<String> contentSelectors,
    @Param(WHERE_PARAMS) Map<String, Object> whereParams);
 
Example #3
Source File: PersonMapper.java    From mybaties with Apache License 2.0 5 votes vote down vote up
@Select({
  "SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
  "FROM Person",
  "WHERE id = #{id,jdbcType=INTEGER}"
})
@ResultMap("personMapComplex")
public Person getWithComplex2(Long id);
 
Example #4
Source File: PersonMapper.java    From mybatis with Apache License 2.0 5 votes vote down vote up
@Select({
  "SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
  "FROM Person",
  "WHERE id = #{id,jdbcType=INTEGER}"
})
@ResultMap("personMapComplex")
public Person getWithComplex2(Long id);
 
Example #5
Source File: PersonMapper.java    From mybatis with Apache License 2.0 5 votes vote down vote up
@Select({
    "SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
    "FROM Person",
    "WHERE id = #{id,jdbcType=INTEGER}"
  })
@ResultMap("org.apache.ibatis.submitted.complex_column.PersonMapper.personMapComplex")
public Person getWithComplex3(Long id);
 
Example #6
Source File: PersonMapper.java    From mybaties with Apache License 2.0 5 votes vote down vote up
@Select({
    "SELECT id, firstName, lastName, parent_id, parent_firstName, parent_lastName",
    "FROM Person",
    "WHERE id = #{id,jdbcType=INTEGER}"
  })
@ResultMap("org.apache.ibatis.submitted.complex_column.PersonMapper.personMapComplex")
public Person getWithComplex3(Long id);
 
Example #7
Source File: DistBillListMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("distBillListResult")
@SelectProvider(type = DistBillListSqlProvide.class, method = "excludeInvtsSql")
List<DistBillList> excludeInvts(String distNo, String companyCode);
 
Example #8
Source File: SPMapper.java    From mybaties with Apache License 2.0 4 votes vote down vote up
@Select({ "{call sptest.getnamesLowHigh(", "#{lowestId,jdbcType=INTEGER,mode=IN},", "#{highestId,jdbcType=INTEGER,mode=IN})}" })
@ResultMap("nameResult")
@Options(statementType = StatementType.CALLABLE)
List<Name> getNamesAnnotatedLowHighWithXMLResultMap(@Param("lowestId") int lowestId, @Param("highestId") int highestId);
 
Example #9
Source File: VersionMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("versionResult")
@SelectProvider(type = VersionSqlProvide.class, method = "getVersionByCodeSql")
Version getVersionByCode(String code);
 
Example #10
Source File: OrderHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("orderHeadResult")
@SelectProvider(type = OrderHeadSqlProvide.class, method = "getOrderHeadByHeadGuidSql")
OrderHead getOrderHeadByHeadGuid(String headGuid);
 
Example #11
Source File: MemberMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("memberResult")
@SelectProvider(type = MemberSqlProvide.class, method = "getMemberByUserNameSql")
Member getMemberByUserName(String userName);
 
Example #12
Source File: OrderListMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("orderListResult")
@SelectProvider(type = OrderListSqlProvide.class, method = "getOrderListBySearchTextSql")
List<OrderList> getOrderListBySearchText(String headGuid, String searchText);
 
Example #13
Source File: SPMapper.java    From mybatis with Apache License 2.0 4 votes vote down vote up
@Select({ "{call sptest.arraytest(", "#{ids,mode=IN,jdbcType=ARRAY},", "#{requestedRows,jdbcType=INTEGER,mode=OUT},", "#{returnedIds,mode=OUT,jdbcType=ARRAY})}" })
@ResultMap("nameResult")
@Options(statementType = StatementType.CALLABLE)
List<Name> getNamesWithArrayAnnotatedWithXMLResultMap(Map<String, Object> parms);
 
Example #14
Source File: SPMapper.java    From mybaties with Apache License 2.0 4 votes vote down vote up
@Select({ "{call sptest.arraytest(", "#{ids,mode=IN,jdbcType=ARRAY},", "#{requestedRows,jdbcType=INTEGER,mode=OUT},", "#{returnedIds,mode=OUT,jdbcType=ARRAY})}" })
@ResultMap("nameResult")
@Options(statementType = StatementType.CALLABLE)
List<Name> getNamesWithArrayAnnotatedWithXMLResultMap(Map<String, Object> parms);
 
Example #15
Source File: SPMapper.java    From mybaties with Apache License 2.0 4 votes vote down vote up
@Select("{call sptest.getnamesanditems()}")
@ResultMap("nameResult,itemResult")
@Options(statementType = StatementType.CALLABLE)
List<List<?>> getNamesAndItemsAnnotatedWithXMLResultMap();
 
Example #16
Source File: SPMapper.java    From mybaties with Apache License 2.0 4 votes vote down vote up
@Select("{call sptest.getnamesanditems()}")
@ResultMap({"nameResult","itemResult"})
@Options(statementType = StatementType.CALLABLE)
List<List<?>> getNamesAndItemsAnnotatedWithXMLResultMapArray();
 
Example #17
Source File: TestMapperY.java    From mybatis with Apache License 2.0 4 votes vote down vote up
@Select("SELECT * FROM test AS t LIMIT 1")
@ResultMap("map")
TestModel retrieveTestString();
 
Example #18
Source File: TestMapperX.java    From mybatis with Apache License 2.0 4 votes vote down vote up
@Select("SELECT * FROM test AS t LIMIT 1")
@ResultMap("map")
TestModel retrieveTestString();
 
Example #19
Source File: DistBillListMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("distBillListResult")
@SelectProvider(type = DistBillListSqlProvide.class, method = "getDistBillListListBySearchTextSql")
List<DistBillList> getDistBillListListBySearchText(String seqNo, String searchText);
 
Example #20
Source File: DeliveryListMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("deliveryListResult")
@SelectProvider(type = DeliveryListSqlProvide.class, method = "getDeliveryListSql")
List<DeliveryList> getDeliveryList(DeliveryList deliveryList);
 
Example #21
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getNonSyncInvtListSql")
List<InvtHead> getNonSyncInvtList(String startDate, String endDate);
 
Example #22
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadMonthCountSql")
List<InvtHead> getInvtHeadMonthCount();
 
Example #23
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getDeclareTopTenSql")
List<InvtHead> getDeclareTopTen(InvtHead invtHead);
 
Example #24
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadListByRepeatInvtNoSql")
List<InvtHead> getInvtHeadListByRepeatInvtNo();
 
Example #25
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadByInvtNoSql")
InvtHead getInvtHeadByInvtNo(String invtNo);
 
Example #26
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "exportInvtHeadListSql")
List<InvtHead> exportInvtHeadList(InvtHead invtHead);
 
Example #27
Source File: InvtHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtHeadResult")
@SelectProvider(type = InvtHeadSqlProvide.class, method = "getInvtHeadByHeadGuidSql")
InvtHead getInvtHeadByHeadGuid(String headGuid);
 
Example #28
Source File: InvtListMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("invtListResult")
@SelectProvider(type = InvtListSqlProvide.class, method = "getInvtListListBySearchTextSql")
List<InvtList> getInvtListListBySearchText(String headGuid, String searchText);
 
Example #29
Source File: PersonalInfoMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("personalInfoResult")
@SelectProvider(type = PersonalInfoSqlProvide.class, method = "getPersonalInfoByNameCertIdSql")
PersonalInfo getPersonalInfoByNameCertId(String name, String certId);
 
Example #30
Source File: VeHeadMapper.java    From maintain with MIT License 4 votes vote down vote up
@ResultMap("veHeadResult")
@SelectProvider(type = VeHeadSqlProvide.class, method = "getVeHeadByVeNoSql")
VeHead getVeHeadByVeNo(String veNo);