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

¹ÎºÀ±â   
   Á¶È¸ 5405   Ãßõ 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 3259/5680
2015-12   1482489   ¹é¸Þ°¡
2014-05   4945800   Á¤ÀºÁØ1
2008-11   5404   ±èÈ¿¼ö
2005-08   5404   Á¤ÀºÁØ
2014-01   5404   Cello
2006-07   5404   ÀÌÀ±¼º
2014-05   5404   ¾§
2012-12   5404   ¼ºÅõºÒÆÐ
2006-05   5404   ¹Ú¿µ¹Î
2016-12   5404   ÀÌÁ¾Çöoph
2016-10   5404   ¹ã±âÂ÷
2011-06   5404   1CPUÁöâÈÆ
2005-11   5404   À±È£¿ë
2015-07   5404   Ǫ¸¥ÇϴþƷ¡
2008-02   5405   Á¶¿µ¹Î
2013-05   5405   agegold
2013-03   5405   ±èÀå¿ì
2005-08   5405   ÃÖ¸¶·ç
2013-12   5405   Á¶¿î
2014-11   5405   sprirea
2006-07   5405   ¿ì½Â¿±
2012-08   5405   ¹Ú¼º¸¸