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

¹ÎºÀ±â   
   Á¶È¸ 5403   Ãßõ 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 4163/5680
2014-05   4945399   Á¤ÀºÁØ1
2015-12   1482089   ¹é¸Þ°¡
2009-02   7024   Çѳ²±Ô
2009-02   5672   ÀÌÀç´ö
2009-02   6291   ¹æoÈ¿o¹®
2009-02   12192   ¿À»óÈÆ
2009-02   4860   ¹ÎÁöÈÆ
2009-02   6334   ¹æoÈ¿o¹®
2009-02   5523   ±èÁ¾¹Î1
2009-02   6925   jore
2009-02   5196   ±èÀ¶±â
2009-02   10305   ±è°Ç¿ì
2009-02   6195   ½ÂÈĴϵµÄì
2009-02   5675   µþ±â´ëÀå
2009-02   5105   theÃ̳ð
2009-02   6056   ÇØÇÇ¿£Á©
2009-02   6408   ¿¤»óÀ¯
2009-02   7417   Àܵð
2009-02   7432   ÀÌâÁØ
2009-02   7931   ·Î±×¾Æ¿ô
2009-02   10715   ³ª³Ê¿ì¸®
2009-02   15578   °í¿µ±Ù