You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Chennupati, Kalyani" <Ka...@iex.com> on 2006/05/10 21:51:04 UTC

Possible to specify mapping files using classpath?

Instead of specifying each ibatis mapping file I would like to 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. Anyone have
any idea on how to do this?

 

<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.


Re: Possible to specify mapping files using classpath?

Posted by Larry Meadors <lm...@apache.org>.
Not implemented, but a cool idea.

If it isn't in JIRA, add it.

Larry


On 5/10/06, Chennupati, Kalyani <Ka...@iex.com> wrote:
>
>
>
>
> Instead of specifying each ibatis mapping file I would like to 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. Anyone have any
> idea on how to do this?
>
>
>
> <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.