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

¹ÎºÀ±â   
   Á¶È¸ 5400   Ãßõ 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 3253/5679
2014-05   4942337   Á¤ÀºÁØ1
2015-12   1479166   ¹é¸Þ°¡
2006-05   5398   Á¤ÇýÁø
2006-03   5398   ÀÓöÇõ
2014-10   5398   Win31
2016-08   5398   Ãʺ¸¿¡¿ä
2017-06   5399   COLMDEST
2006-06   5399   ±èâ¼ö
2005-08   5399   ¹ÚÁøÇÑ
2005-04   5399   ±è°Ç¿ì
2008-05   5399   ³ëÁ¤·¡
2005-11   5399   ÃÖ¸¶·ç
2006-04   5399   ½ÅÀ¯È£
2011-09   5399   ½ÂÈĴϵµÄì
2014-05   5399   Á¤À¯¹Ì
2011-12   5399   ¹Ì¼ö¸Ç
2008-04   5399   ·ù½Â¿ì
2008-06   5399   ±èµ¿¼ö
2005-11   5399   ±èö±â
2006-01   5399   ÀÌÁ¦È£
2006-06   5399   ¼­¿øÅÃ
2005-09   5399   ÀÓ¸í»ó