iBatis sqlMapConfig ¿¡¼­ sqlMap resourceÀ» µû·Î »¬ ¼ö ÀÖ³ª¿ä?

¹ÎºÀ±â   
   Á¶È¸ 5408   Ãßõ 5    

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMapConfig      
    PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"      
    "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">

<sqlMapConfig>

        <properties resource="project/properties/db/database.properties.dev"/>
        <transactionManager type="JDBC">
                <dataSource type="SIMPLE">
                        <property name="JDBC.Driver" value="${driver}" />
                        <property name="JDBC.ConnectionURL" value="${jdbc.url}" />
                        <property name="JDBC.Username" value="${username}" />
                        <property name="JDBC.Password" value="${password}" />
                        <!--OPTIONAL PROPERTIES BELOW -->
                        <property name="JDBC.DefaultAutoCommit" value="true" />
                    <property name="Pool.MaximumActiveConnections" value="100"/>
                    <property name="Pool.MaximumIdleConnections" value="50"/>
                    <property name="Pool.MaximumCheckoutTime" value="120000"/>
                    <property name="Pool.TimeToWait" value="500"/>
                    <property name="Pool.PingQuery" value="select 1"/>
                    <property name="Pool.PingEnabled" value="false"/>
                    <property name="Pool.PingConnectionsOlderThan" value="1"/>
                    <property name="Pool.PingConnectionsNotUsedFor" value="1"/>
                </dataSource>
        </transactionManager>

        <sqlMap resource="sqlmaps/common/selectCommon.xml" />

        <sqlMap resource="sqlmaps/concept/deleteConcept.xml" />
        <sqlMap resource="sqlmaps/concept/insertConcept.xml" />
        <sqlMap resource="sqlmaps/concept/selectConcept.xml" />
        <sqlMap resource="sqlmaps/concept/updateConcept.xml" />

        <sqlMap resource="sqlmaps/conceptRelationship/deleteConceptRelationship.xml" />
        <sqlMap resource="sqlmaps/conceptRelationship/insertConceptRelationship.xml" />
        <sqlMap resource="sqlmaps/conceptRelationship/selectConceptRelationship.xml" />

        <sqlMap resource="sqlmaps/domain/deleteDomain.xml" />
        <sqlMap resource="sqlmaps/domain/insertDomain.xml" />
        <sqlMap resource="sqlmaps/domain/selectDomain.xml" />
        <sqlMap resource="sqlmaps/domain/updateDomain.xml" />

        <sqlMap resource="sqlmaps/domainRelationship/deleteDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/insertDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/replaceDomainRelationship.xml" />
        <sqlMap resource="sqlmaps/domainRelationship/selectDomainRelationship.xml" />

        <sqlMap resource="sqlmaps/domainSameConcept/deleteDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/insertDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/selectDomainSameConcept.xml" />
        <sqlMap resource="sqlmaps/domainSameConcept/updateDomainSameConcept.xml" />

        <sqlMap resource="sqlmaps/domainToConcept/deleteDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/insertDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/replaceDomainToConcept.xml" />
        <sqlMap resource="sqlmaps/domainToConcept/selectDomainToConcept.xml" />

        <sqlMap resource="sqlmaps/idIssue/replaceIdIssue.xml" />

        <sqlMap resource="sqlmaps/menu/selectMenu.xml" />

        <sqlMap resource="sqlmaps/referenceSystemToConcept/deleteReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/insertReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/replaceReferenceSystemToConcept.xml" />
        <sqlMap resource="sqlmaps/referenceSystemToConcept/selectReferenceSystemToConcept.xml" />

        <sqlMap resource="sqlmaps/term/deleteTerm.xml" />
        <sqlMap resource="sqlmaps/term/insertTerm.xml" />
        <sqlMap resource="sqlmaps/term/replaceTerm.xml" />
        <sqlMap resource="sqlmaps/term/selectTerm.xml" />
        <sqlMap resource="sqlmaps/term/updateTerm.xml" />

        <sqlMap resource="sqlmaps/user/insertUser.xml" />
        <sqlMap resource="sqlmaps/user/updateUser.xml" />
        <sqlMap resource="sqlmaps/user/deleteUser.xml" />
        <sqlMap resource="sqlmaps/user/selectUser.xml" />

</sqlMapConfig>

ÇöÀç µ¿ÀÏÇÑ ½ºÅ°¸¶¸¦ °¡Áø DB¸¦ 4°³ »ç¿ëÁßÀε¥, ±×·¡¼­ SqlMapConfig.xmlµµ À̸§ÀÌ ´Ù¸£°Ô ³»¿ëÀº ¶È°°ÀÌ 4°³ÀÔ´Ï´Ù.
±Ùµ¥ sqlMap resource¸¦ Ãß°¡Çϸé ÆÄÀÏ 4°³¿¡ ¸ðµÎ <sqlMap resource=""/> ºÎºÐÀ» Ãß°¡ÇØ Áà¾ßÇؼ­
<sqlMap resource=""/> ºÎºÐÀ» ÇϳªÀÇ ÆÄÀÏ·Î µû·Î »©¼­ °¢°¢ 4°³ÀÇ SqlMapConfig.xml¿¡¼­ ÀÎŬ·çµå ÇÏ°í ½Í°Åµç¿ä
Ȥ½Ã ÀÌ·± ¼³Á¤ÀÌ °¡´ÉÇÑÁö °í¼ö´ÔµéÀÇ ´äº¯À» ºÎŹ µå¸³´Ï´Ù.
°¨»çÇÕ´Ï´Ù.

 
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 4187/5680
2014-05   4947392   Á¤ÀºÁØ1
2015-12   1484050   ¹é¸Þ°¡
2017-07   5129   Á¸´ÙÀÌÅ©
2017-07   4373   ½Öcpu
2006-03   7801   Á¤¼ºÈÆ
2016-05   4909   Å×·¯¸®½ºÆ®
2017-07   2928   Sikieiki
2017-08   3060   Astarot
2006-05   5697   ¼Õ»ó¿í
2017-04   6381   ĵÀ§µå
2017-06   6980   ¹Ú
2017-07   3989   Å¥´Ô
2004-07   8114   ±è³«Ã¶
2018-08   3214   °­¹ÎÁØ1
2005-11   6431   ÀÌÁÖÈñ
2017-06   3713   °Ç¾à
2005-07   6342   ÃÖ°æ¹Î
2017-07   3032   chotws
2006-05   5536   Á¤¿ø¿õ
2008-02   6095   ¹Ú¹®Çü
2006-04   6184   ÃÖ½ÂÈñ
2008-12   6289   ¹èÁ¤ÇÑ