Could you give me an example? Cheers, Martin
-----Original Message----- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Montag, 23. Mai 2005 20:03 To: Jean-Francois Poilpret Cc: ibatis-user-java@incubator.apache.org Subject: Re: Merging multiple sqlmaps configurations Then your best bet is to create a sqlmapconfig that binds all of your sqlmaps together outside of the modules. The modules would then contain only the sqlmap files themselves. Brandon On 5/23/05, Jean-Francois Poilpret <[EMAIL PROTECTED]> wrote: > Well I think that Martin would like to be able to define separate > application modules (maybe packaged as separate independent jars), each > including each own SqlMaps config file. Then when assembling these modules > together in a complete application, there would be a problem building a > SqlMapClient from several SqlMap config files instead of only one. > > Just my 2 cents. > > -----Original Message----- > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > Sent: Monday, May 23, 2005 10:25 PM > To: ibatis-user-java@incubator.apache.org > Subject: Re: Merging multiple sqlmaps configurations > > Sorry Martin, i have no idea what you are asking. Please be more > specific. It would be helpful if you clarified what a module is and > how it relates to sqlmap configurations. Does anyone else understand > Martin's problem? I'm known to be dense :) > > Brandon > > On 5/23/05, Zeltner Martin <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have two modules which are totally independent from each other. Each > > module uses more then one resource configuration. I would like to be able > to > > create a new module, which has a dependency to the other two modules. This > > new module should only know the "main" config file and not the > > implementation details of the "submodules". So we have only one entry > point. > > > > What I really want is to combine sets of sql resources. > > This case is used in a framework for java. > > > > Cheers, > > Martin > > > > -----Original Message----- > > From: Brandon Goodin [mailto:[EMAIL PROTECTED] > > Sent: Montag, 23. Mai 2005 14:26 > > To: ibatis-user-java@incubator.apache.org > > Subject: Re: Merging multiple sqlmaps configurations > > > > > > I'm really not sure what you are asking here. There is no way to > > combine two different sqlMapConfig files into one. You would have to > > create a new sqlMapConfig with all of the sqlMap files configured into > > it or load two SqlMapClients with their own sqlMapConfig files. > > > > Brandon > > > > On 5/23/05, Zeltner Martin <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > > > I've got following two sqlmaps configuration files: > > > > > > > > > file1: > > > <sqlMapConfig> > > > <sqlMap resource="ibatis/table-keyword.xml" /> > > > </sqlMapConfig> > > > > > > file2: > > > <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" /> > > > <sqlMap resource="ibatis/table-referencekeywordrelationship.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? > > > > > > file3: > > > <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" /> > > > <sqlMap resource="ibatis/table-referencekeywordrelationship.xml" /> > > > </sqlMapConfig> > > > > > > > > > Thanks, > > > Cheers, > > > Martin > > > > > > > >