1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.multipleresultsetswithassociation;
17
18 import java.util.List;
19
20 import org.apache.ibatis.annotations.Options;
21 import org.apache.ibatis.annotations.ResultMap;
22 import org.apache.ibatis.annotations.Select;
23 import org.apache.ibatis.mapping.StatementType;
24
25 public interface Mapper {
26
27 List<OrderDetail> getOrderDetailsWithHeaders();
28
29 @Select(value = "{ call GetOrderDetailsAndHeaders() }")
30 @ResultMap("orderDetailResultMap")
31 @Options(statementType = StatementType.CALLABLE, resultSets = "orderDetailResultSet,orderHeaderResultSet")
32 List<OrderDetail> getOrderDetailsWithHeadersAnnotationBased();
33
34 }