<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN"
 "http://ibatis.apache.org/dtd/abator-config_1_0.dtd">

<abatorConfiguration>
    <abatorContext> <!-- TODO: Add Database Connection Information -->
        <jdbcConnection driverClass="org.postgresql.Driver"
                connectionURL="jdbc:postgresql://localhost:5432/postgres"
                userId="postgres"
                password="password">
            <classPathEntry location="C:/ibatisSample/lib/postgresql-8.1-405.jdbc3.jar" />
        </jdbcConnection>

        <javaModelGenerator targetPackage="dto" targetProject="ibatisSample" />
        <sqlMapGenerator targetPackage="dao" targetProject="ibatisSample" />
        <daoGenerator type="IBATIS" targetPackage="dao" targetProject="ibatisSample" />

        <table schema="public" tableName="SHAIN">
            <columnOverride column="SHAIN_ID" property="shainId" javaType="int" jdbcType="INTEGER" />
            <columnOverride column="SHAIN_NAME" property="shainName" javaType="String" jdbcType="VARCHAR" />
            <columnOverride column="BUSHO_ID" property="bushoId" javaType="int" jdbcType="INTEGER" />
        </table>

        <table schema="public" tableName="BUSHO">
            <columnOverride column="BUSHO_ID" property="bushoId" javaType="int" jdbcType="INTEGER" />
            <columnOverride column="BUSHO_NAME" property="bushoName" javaType="String" jdbcType="VARCHAR" />
            <columnOverride column="EXTENSION_NUM" property="extensionNum" javaType="int" jdbcType="INTEGER" />
        </table>

    </abatorContext>
</abatorConfiguration>