Re: Sql Map

2010-05-17 Thread Clinton Begin
If it's in a property file, can you just do this at the build stage? It will be faster to do so too. Clinton On Mon, May 17, 2010 at 2:42 PM, kiran vuppla wrote: > Hi, > > I would like if we can do the following check in the Query inside > statement. I am reading the property from property f

Sql Map

2010-05-17 Thread kiran vuppla
Hi, I would like if we can do the following check in the Query inside statement. I am reading the property from property file instead of parameter map. Though I have the property(CONSTRAINT) in the property file, this is not getting added to the existing SQL statement. Can someone help me.

Re: ibatis3 : multiple parameters in statement without map or bean

2010-05-17 Thread Nicolas ANTONIAZZI
Thank you Larry, I did not read correctly the User Guide. Indeed, it says : *If your mapper method takes multiple parameters, this annotation can be applied to a mapper method parameter to give each of them a name. Otherwise, multiple parameters will be named by their ordinal position (not includ

Re: ibatis3 : multiple parameters in statement without map or bean

2010-05-17 Thread Larry Meadors
Yes, you have to annotate the parameters (because java reflection is kinda weak). It's in the user guide. Larry On Mon, May 17, 2010 at 4:15 AM, Nicolas ANTONIAZZI wrote: > Hi, > Is it possible to pass multiple parameters in iBatis3 without having to pass > a map or a bean ? > example : >

ibatis3 : multiple parameters in statement without map or bean

2010-05-17 Thread Nicolas ANTONIAZZI
Hi, Is it possible to pass multiple parameters in iBatis3 without having to pass a map or a bean ? example : - UserMapper.xml SELECT * FROM user OFFSET #{offset} LIMIT #{limit} - UserMapper.java --- public interface UserMapper { public List sele

contextGenerateAdditionalXmlFiles to create single file

2010-05-17 Thread Amar X Hussain
Hi guys, I have an Ibator plugin that creates a spring config file per table, it works fine but I wanted to know if there was a way a could modify it to create a single file for all tables instead. Thanks, Amar! import java.util.ArrayList; import java.util.List; import org.apache.ibatis.ibato