null pointer exception when setting @Options(useCache = false)

2009-12-03 Thread -dk-
Hi All. I'm using iBatis 3 beta 5 for Java 6 with ojdbc6.jar (Oracle 11g). I got working simple mapper like this: public interface RateMapper { @Select("select rate from rate_table where rate_id = #{id}") double getRate(int id); } Then I tried to disable cache for this statement:

Re: IBatis 3 Exceptions

2009-12-03 Thread Clinton Begin
Nope. Nothing technical. I just happen to hate checked exceptions. :-) The original exception is always nested within the runtime one though, so you have full access to everything you need. There is a bit of placeholder code where I had intended to build a hierarchy of exceptions, similar to S

IBatis 3 Exceptions

2009-12-03 Thread Alex Sherwin
Why does IBatis 3.0 throw IbatisException (RuntimeException) instead of checked exceptions? Is this a limitation now due to the dynamic nature of the generic typed mapped statement classes? IbatisException doesn't even seem to wrap SQLException, I see it wrapping the native exceptions from my

Re: IB3 Spring Integration

2009-12-03 Thread Kai Grabfelder
Thanks for sharing this. Once iBATIS 3 is GA I'm pretty sure springsource will pick this up. So as soon as iBATIS 3 is out of beta feel free to open a jira ticket on the spring jira (you could even do it right now, but I'm not sure if spring wants to include integration code with iBATIS 3 beeing

Re: Where did my newline go????????

2009-12-03 Thread Clinton Begin
yes, iBATIS does trim newlines from the SQL statement itself. If you're using $substring$ replacement style parameters, they'll get trimmed. The solution (and a safer way to code this) is to use JDBC #parameters#. Clinton On Thu, Dec 3, 2009 at 11:22 AM, Ivan Bojer wrote: > Hi folks, > > I am

Where did my newline go????????

2009-12-03 Thread Ivan Bojer
Hi folks, I am going crazy with this and I would appreciate any help or hint! Here is the sample: RadiusServersDAO serversDao = new RadiusServersDAOImpl(sqlMapper); RadiusServers aServer = getServerCraft()... String endline = System.getProperty("line.separator"); String adminSecret = "aaa"; //$