xml persistence

2010-05-13 Thread Zhong Nanhai
Hi, Does iBatis support XML persistence, i.e. take an XML file as a database? Best Regards, Zhong Nanhai - To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.a

Re: xml persistence

2010-05-13 Thread Larry Meadors
No. On Thu, May 13, 2010 at 4:30 AM, Zhong Nanhai wrote: > Hi, > > Does iBatis support XML persistence, i.e. take an XML file as a database? > > > Best Regards, > Zhong Nanhai > > - > To unsubscribe, e-mail: user-java-unsubscr...

RE: xml persistence

2010-05-13 Thread OBender
I think you should rather look into the JDBC drivers for XML data sources, e.g., http://www.csv-jdbc.com/stels_xml_jdbc.htm This way you could use iBatis (as almost any ORM and ORM like tools). > -Original Message- > From: Larry Meadors [mailto:larry.mead...@gmail.com] > Sent: Thursday, M

Re: RE: xml persistence

2010-05-13 Thread Zhong Nanhai
Hi, OBender: Thank you very much!!! StelsXML does a good job! It can work with iBatis successfully at the present time here. Best Regards, Zhong Nanhai On 5/13/10, OBender wrote: > I think you should rather look into the JDBC drivers for XML data sources, > e.g., http://www.csv-jdbc.com/st

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Jeff Butler
It took me a while to figure it out also! Create your SqlSessionFactory as normal, then add the interfaces manually: sqlSessionFactory.getConfiguration().addMapper(SomeMapperInterface.class); Jeff Butler On Wed, May 12, 2010 at 4:16 PM, Rick R wrote: > Larry showed me his cool no xml con

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Larry Meadors
He wants to represent that in the xml config. Larry On Thu, May 13, 2010 at 2:35 PM, Jeff Butler wrote: > It took me a while to figure it out also! > > Create your SqlSessionFactory as normal, then add the interfaces manually: > >     sqlSessionFactory.getConfiguration().addMapper(SomeMapperInt

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Rick R
On Thu, May 13, 2010 at 4:50 PM, Larry Meadors wrote: > He wants to represent that in the xml config. > Right. It seems odd that you can manually add the Mapper through Java (as Jeff has shown), but not through the xml config.

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Clinton Begin
That would be a really simple change. What I've been really getting used to though is configuring the datasource in XML, and then using Java for most everything else. For example, I have this in a class called IbatisConfig: final String resource = "com/myapp/data/IbatisConfig.xml"; f

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Rick R
Ok, cool maybe ill just change to this. (By the way, I'm searching the archives for this, and it's sort of off-topic but since you mentioned you create your datasource in XML - I'm curious how do you declare the pool implementation that you want to use? I know ibatis comes with a default one (not

Re: Way to use sql in mapper interface, without having to create a corresponding xml mapping file?

2010-05-13 Thread Rick R
On Thu, May 13, 2010 at 9:21 PM, Rick R wrote: > > (By the way, I'm searching the archives for this, and it's sort of > off-topic but since you mentioned you create your datasource in XML - I'm > curious how do you declare the pool implementation that you want to use? I > know ibatis comes with a