~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-importexport/src/main/resources/sqlmap/dataSet.sqlmap.xml

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" ?>
 
2
 
 
3
<!DOCTYPE sqlMap
 
4
        PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
 
5
        "http://ibatis.apache.org/dtd/sql-map-2.dtd">
 
6
 
 
7
<sqlMap namespace="dataSet">
 
8
        
 
9
        <!-- TypeAlias -->
 
10
 
 
11
  <typeAlias alias="dataSet" type="org.hisp.dhis.dataset.DataSet"/>
 
12
        
 
13
        <!-- ResultMap -->
 
14
        
 
15
        <resultMap class="dataSet" id="dataSetResultMap">
 
16
                <result property="id" column="DataSetID"/>
 
17
                <result property="name" column="DataSetName"/>
 
18
    <result property="periodType" column="DataPeriodTypeID" typeHandler="periodTypeTypeHandler"/>
 
19
  </resultMap>
 
20
 
 
21
        <!-- Statement -->
 
22
                
 
23
        <select id="getDataSets" resultMap="dataSetResultMap">
 
24
                SELECT * FROM DataSet
 
25
        </select>
 
26
        
 
27
</sqlMap>