Re: special characters in xml

2010-05-11 Thread Andrea Selva
Hi, in this case i would try to use the xml substitution for the % character, so becomes "like '% %'" I hope this could help Andrea On Mon, May 10, 2010 at 8:26 PM, Juan Chung wrote: > when you prepare the parameters before calling ibatis, you could change the > parameter value like this: > va

Re: Problem with id mapping to IDENTITY in HSQLDB

2010-04-22 Thread Andrea Selva
to remove the annotated method and use only the xml. I'm think to something @Select("query="SELECT * FROM Activity", map=) public List allActivities(); Many thanks, Andrea Selva On Thu, Apr 22, 2010 at 3:18 PM, Clinton Begin wrote: > There's currently no way to u

Problem with id mapping to IDENTITY in HSQLDB

2010-04-22 Thread Andrea Selva
t corretly map the key IDENTITY column to the java attribute. The iBAtis3 svn rev I use is r928229. Many thanks in advance for any usefull hint. Best regards Andrea Selva

Re: Execute in the same transaction

2010-01-27 Thread Andrea Selva
Hi, i think that the statements are executed in 2 transaction because your connection pool contains more than one connection. To execute the two in the same transaction i suppose you should do something like this: .startTransaction(); .queryForList("*selectTestObject*"); .endTransaction(); This is

Re: mapping flat data int list of objects

2010-01-14 Thread Andrea Selva
Hi i use iBatis 2 not 3, and i solved this using a TypeHandlerCallback. 1) in my sqlMapConfig.xml i declared the use of the type handler: 2) i've implemented the iBAtis interface com.ibatis.sqlmap.client.extensions.TypeHandlerCallback and defined the methods to write and read from DB column. I

Re: Could not find resource exception

2010-01-12 Thread Andrea Selva
right. after reading your reply, I moved the xml file under > to src folder and it worked correct. > > how can I insert the config folder in my classpath? > > thanks... > > > Andrea Selva wrote: > > > > Hi, > > i think that probably you missed to insert t

Re: Could not find resource exception

2010-01-12 Thread Andrea Selva
Hi, i think that probably you missed to insert the config folder in your classpath. File api works on the filesystem , Resources on the classpath. I hope this help Andrea On Tue, Jan 12, 2010 at 4:07 PM, olamalam wrote: > > Hi to all, > I'm new to ibatis and I have a problem about getting sqlMa

How about a Netbeans integration plugin?

2010-01-11 Thread Andrea Selva
Hi all, someone have news about the intentions of the NetbeansPlugin? Best regards Andrea