You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Kalyani Chennupati (JIRA)" <ib...@incubator.apache.org> on 2006/06/14 14:42:29 UTC

[jira] Created: (IBATIS-306) Using classpath to pick up all iBatis sqlmap files without having to specify each one individually

Using classpath to pick up all iBatis sqlmap files without having to specify each one individually
--------------------------------------------------------------------------------------------------

         Key: IBATIS-306
         URL: http://issues.apache.org/jira/browse/IBATIS-306
     Project: iBatis for Java
        Type: Improvement

  Components: SQL Maps  
    Versions: 2.1.7    
 Environment: Applicable to any
    Reporter: Kalyani Chennupati


Instead of specifying each ibatis mapping file it  would be very convenient if we could  specify a classpath from where to pick up all the mapping files that end with .ibtm.xml.
 
I am trying something like below and that is not working. 
 
<sqlMapConfig>
      <sqlMap resource="classpath*:/**/*.ibtm.xml" />
</sqlMapConfig>
 
It would be really convenient if all the specific ibatis mapping files can be picked up this way

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (IBATIS-306) Using classpath to pick up all iBatis sqlmap files without having to specify each one individually

Posted by "adamb (JIRA)" <ib...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/IBATIS-306?page=comments#action_12431447 ] 
            
adamb commented on IBATIS-306:
------------------------------

That would cause our application to have performance problems.  We have a project with ~10,000 sqlmaps and have hacked iBATIS to lazy load them.  Also there is potentail for causing naming conflicts?  (e.g. same named sql map but different path?)

> Using classpath to pick up all iBatis sqlmap files without having to specify each one individually
> --------------------------------------------------------------------------------------------------
>
>                 Key: IBATIS-306
>                 URL: http://issues.apache.org/jira/browse/IBATIS-306
>             Project: iBatis for Java
>          Issue Type: Improvement
>          Components: SQL Maps
>    Affects Versions: 2.1.7
>         Environment: Applicable to any
>            Reporter: Kalyani Chennupati
>
> Instead of specifying each ibatis mapping file it  would be very convenient if we could  specify a classpath from where to pick up all the mapping files that end with .ibtm.xml.
>  
> I am trying something like below and that is not working. 
>  
> <sqlMapConfig>
>       <sqlMap resource="classpath*:/**/*.ibtm.xml" />
> </sqlMapConfig>
>  
> It would be really convenient if all the specific ibatis mapping files can be picked up this way

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (IBATIS-306) Using classpath to pick up all iBatis sqlmap files without having to specify each one individually

Posted by "Amir Pashazadeh (JIRA)" <ib...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/IBATIS-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659212#action_12659212 ] 

Amir Pashazadeh commented on IBATIS-306:
----------------------------------------

it is nice to provide a root package, so ibatis scans all classes in that package and all its sub-packages.

> Using classpath to pick up all iBatis sqlmap files without having to specify each one individually
> --------------------------------------------------------------------------------------------------
>
>                 Key: IBATIS-306
>                 URL: https://issues.apache.org/jira/browse/IBATIS-306
>             Project: iBatis for Java
>          Issue Type: Improvement
>          Components: SQL Maps
>    Affects Versions: 2.1.7
>         Environment: Applicable to any
>            Reporter: Kalyani Chennupati
>
> Instead of specifying each ibatis mapping file it  would be very convenient if we could  specify a classpath from where to pick up all the mapping files that end with .ibtm.xml.
>  
> I am trying something like below and that is not working. 
>  
> <sqlMapConfig>
>       <sqlMap resource="classpath*:/**/*.ibtm.xml" />
> </sqlMapConfig>
>  
> It would be really convenient if all the specific ibatis mapping files can be picked up this way

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.