Hello,
I've got following two sqlmaps configuration files:
module-x-file:
module-y-file:Code:<sqlMapConfig> <sqlMap resource="ibatis/table-keyword.xml" /> </sqlMapConfig>
Code:<sqlMapConfig> <sqlMap resource="ibatis/table-annotation.xml" /> <sqlMap resource="ibatis/table-file.xml" /> <sqlMap resource="ibatis/table-link.xml" /> <sqlMap resource="ibatis/table-book.xml" /> <sqlMap resource="ibatis/table-formalpublication.xml" /> </sqlMapConfig>
I'd like to merge these two files now. Is there a possability so that I do not have to create a file like this below?
module-z-file:
This is used in a framework, where you have modules and each module is represented by a jar file. These modules are standard components like one for the security or the remoting. The idea is to be able to use such a module and you just have to know ONE (i.e. module-x-file, see above) file which has to be used when iBatis SqlMap is used.Code:<sqlMapConfig> <sqlMap resource="ibatis/table-keyword.xml" /> <sqlMap resource="ibatis/table-annotation.xml" /> <sqlMap resource="ibatis/table-file.xml" /> <sqlMap resource="ibatis/table-link.xml" /> <sqlMap resource="ibatis/table-book.xml" /> <sqlMap resource="ibatis/table-formalpublication.xml" /> </sqlMapConfig>
Could we made such an abstraction in spring?
Thanks,
Cheers,
Martin


Reply With Quote
