~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/dataElementGroup.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="dataElementGroup">
 
8
        
 
9
        <!-- TypeAlias -->
 
10
        
 
11
        <typeAlias alias="dataElementGroup" type="org.hisp.dhis.dataelement.DataElementGroup"/>
 
12
 
 
13
        <!-- ResultMap -->
 
14
        
 
15
        <resultMap class="dataElementGroup" id="dataElementGroupResultMap">
 
16
                <result property="id" column="DataElementAndIndicatorGroupID"/>
 
17
                <result property="name" column="DataElementAndIndicatorGroupName"/>
 
18
        </resultMap>
 
19
 
 
20
        <!-- Statement -->
 
21
        
 
22
        <select id="getDataElementGroups" resultMap="dataElementGroupResultMap">
 
23
                        SELECT * FROM DataElementAndIndicatorGroup
 
24
        </select>
 
25
        
 
26
</sqlMap>
 
27