problem parsing sqlMaps

2008-02-28 Thread guillen.olmos.angel
Hi, As noted in 3.2.1 Element Content and Appendix E of the XML Specification, it is required that content models in element type declarations be deterministic. In http://ibatis.apache.org/dtd/sql-map-2.dtd , there is: I think it causes my xml parser cant parse my sqlMaps returning this error

java.lang.IllegalArgumentException: No SqlMapClient specified

2008-02-28 Thread [EMAIL PROTECTED]
Hi, When am trying to execute a query using iBatis, getting the following exception. java.lang.IllegalArgumentException: No SqlMapClient specified at org.springframework.util.Assert.notNull(Assert.java:113) at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClien

Re: java.lang.IllegalArgumentException: No SqlMapClient specified

2008-02-28 Thread bhaarat Sharma
when you use this code is sqlMapClient specified?? and if it is then try naming it something other than sqlMapClient for example On Thu, Feb 28, 2008 at 7:39 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi, > When am > trying to execute a query using iBati

RE: java.lang.IllegalArgumentException: No SqlMapClient specified

2008-02-28 Thread Jason Kratz
You haven't mentioned whether or not the sqlMapClient bean is configured in the same spring XML file or not. If it is in a different spring XML configuration file try ref bean="sqlMapClient". Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, F

Re: DB2 & Ibatis:problem creating WHERE clause with CURRENT_TIMESTAMP

2008-02-28 Thread Stephen Boyd
Your originally query should work. I ran a similar query that worked in db2 v9. What was the explicit db2 sql exception? You could also try the timestampdiff scalar function (4 = minutes)? For example, where (sysfun.timestampdiff(4,char(CURRENT_TIMESTAMP - INSERTTIME)) <= #duration#) On Thu

RE: problem parsing sqlMaps

2008-02-28 Thread Sundar Sankaranarayanan
Hi, Did you add the sqlMapClient as a reference in you Spring application context? I guess that is what is missing. If you are using Older version of Spring then you should use something like this and use the "sqlMapClient" as a reference property. If you are using

Does Abator from trunk override user added methods to the DAO/DAOImpl files on regen?

2008-02-28 Thread Jared Blitzstein
(Sorry if this is a repost (or possibly a 3 post), something is messed up with my out going email but I think I fixed it) I'm pretty sure adding methods in the generated spring DAO impl/ interface in the current abator release were preserved when you regenerated, but they're not being preser

Re: Does Abator from trunk override user added methods to the DAO/DAOImpl files on regen?

2008-02-28 Thread Jeff Butler
Members added to Java files are preserved with the Eclipse plugin only. So you would need to rebuild the plugin to make this work. Outside of Eclipse, you have to do a manual merge. Some day I'll learn Antlr and fix this for good! It's just too easy in Eclipse :) Jeff Butler On Thu, Feb 28,

IBATIS Caching Layer [Selective Granular Invalidation]

2008-02-28 Thread vrl_swamy
Hi Clinton, Folks, This is regarding the cache model and invalidation rules we define in IBATIS query xmls for query caching. I have a typical requirement: Lets us say we have select query P whose results we have cached, then some update/delete query Q. IBATIS allows me to define "Invalidate P