You can manage this with a combination of your build and iBATIS. Both Ant and iBATIS support token replacement like this: <sqlMap resource="sql/${db_vendor}/Person.xml"/>
Then either get Ant or iBATIS to replace the db_vendor token. I suggest using your build to copy the default files to each vendor specific folder, to avoid duplicate code. Clinton On Tue, Apr 28, 2009 at 9:36 PM, Nathan Maves <nathan.ma...@gmail.com>wrote: > There is nothing in ibatis that will do this. this people can usually be > solved at build time by including the sqlmaps that you need to bundle with > your app. > > > On Sun, Apr 19, 2009 at 2:41 PM, Saloucious <salouci...@gmail.com> wrote: > >> >> Hello, >> >> i would like to know if it is possible to create custom workaround queries >> for specific vendors. >> >> Something like : >> >> <sqlMap resource="sql/Person.xml"/> >> <sqlMap resource="sql/sqlserver/Person.xml"/> >> >> where sql/sqlserver/Person.xml override queries defined in sql/Person.xml >> >> Thanks >> -- >> View this message in context: >> http://www.nabble.com/Custom-vendor-specific-Queries-tp23127179p23127179.html >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> >