Re: 2.3.3 and Spring? Good to go?

2008-08-08 Thread Tom Duffey
On Aug 8, 2008, at 8:42 AM, Ian Zabel wrote: I've seen some recent traffic on this list saying that Spring is incompatible with iBatis 2.3.x. Is this still the case, or have these issues been resolved? Working for me: iBATIS 2.3.3 build# 720 Spring 2.5.6 nightly build + lots of other crap :)

Re: [ANNOUNCE] iBATIS 2.3.3 ... Beta is the new Production

2008-07-25 Thread Tom Duffey
Sorry, I was so excited about this release that I forgot to add details. See below. On Jul 16, 2008, at 2:44 PM, Clinton Begin wrote: * After a week or so, reply to this [ANNOUNCE] marked thread with a +1, showing your confidence in the framework. Include brief details of your stack

Re: [ANNOUNCE] iBATIS 2.3.3 ... Beta is the new Production

2008-07-25 Thread Tom Duffey
On Jul 16, 2008, at 2:44 PM, Clinton Begin wrote: * After a week or so, reply to this [ANNOUNCE] marked thread with a +1, showing your confidence in the framework. Include brief details of your stack (app server, Spring, JDK version, web framework, etc.) +1

Re: NullPointerException after upgrade to 2.3.2

2008-07-15 Thread Tom Duffey
On Jul 15, 2008, at 12:27 PM, Clinton Begin wrote: Known bug, sorry about that. I hope to get to a fix soon... it's easy, just time. In case you didn't see it there is a patch here: https://issues.apache.org/jira/browse/IBATIS-522 Tom On Tue, Jul 15, 2008 at 11:24 AM, <[EMAIL PROTECTED]>

Re: NullPointerException after upgrade to 2.3.2

2008-07-15 Thread Tom Duffey
https://issues.apache.org/jira/browse/IBATIS-522 On Jul 15, 2008, at 12:24 PM, [EMAIL PROTECTED] wrote: I just upgraded to 2.3.2 due to the fact that Spring 2.5.5 seems to need it. After I upgraded I am now getting a NullPointerException after executing a procedure. This was working prior

Re: spring 2.5.5 and ibatis 2.3.2

2008-07-07 Thread Tom Duffey
seem to have a working ibatis.jar with the patch for IBATIS-522. I think all I had to do was switch the compiler source/target versions from 1.4 to 1.5 in pom.xml. Tom On Mon, Jul 7, 2008 at 9:58 AM, Tom Duffey <[EMAIL PROTECTED]> wrote: FYI I also was unable to compile IBATIS wh

Re: NPE after updating to 2.3.1/2.3.2

2008-07-07 Thread Tom Duffey
See link below. On Jul 7, 2008, at 11:53 AM, Kai Mütz wrote: Caused by: java.lang.NullPointerException at java.lang.Class.isAssignableFrom(Native Method) at com .ibatis .sqlmap.engine.type.TypeHandlerFactory.getTypeHandler(TypeHandlerF actory.java:143) https://issues.apache.or

Re: spring 2.5.5 and ibatis 2.3.2

2008-07-07 Thread Tom Duffey
FYI I also was unable to compile IBATIS when I checked out tags/ java_release_2.3.2-715. This is on Mac OS X and for some reason I had to switch JAVA_HOME from 1.6 to 1.5 and also had to edit something in your pom.xml. Maven drives me nuts so I have no idea why what I did worked. Tom On J

Re: Enums and iBatis - still not clear

2007-06-12 Thread Tom Duffey
On Jun 12, 2007, at 9:32 PM, Paul Benedict wrote: For each enum you want to write to the database, you need to write yourself an iBatis type call back handler. This will translate the enum to whatever data type you want (and int or a string, etc.), and vice-versa. This is more of a devel

Re: converting iBATIS framework DAOs to the Spring Framework

2007-04-16 Thread Tom Duffey
See below. On Apr 16, 2007, at 9:46 AM, Meindert wrote: Thus larry could you add the following to finish the converting from IbatisDao to springDao with ibatis sqlmaps? 3) Spring config Add the following to the spring config file; class="org.springframework.jdbc.datasource.DataSourceT

Re: converting iBATIS framework DAOs to the Spring Framework

2007-04-16 Thread Tom Duffey
On Apr 16, 2007, at 8:27 AM, Meindert wrote: I don't think that adding cglib will fix it, the service classes seem to need an interface to be able to generate the proxy. Please correct me if I'm wrong. Yes, it should fix the problem. Spring typically uses JDK-based proxies when the targe

Re: iBATIS, Spring, and transactions...

2007-04-10 Thread Tom Duffey
Hi, On Apr 10, 2007, at 11:30 AM, Meindert wrote: My question is; a) can I still use org.apache.struts.beanaction.BeanAction? I only want to change the DAO to Spring DAO because IBATIS DAO is depreciated and if so b) The BeanAction class is using private static final TheService theServic

Re: Can ibatis work with java object with constructor have parameters?

2007-01-09 Thread Tom Duffey
On Jan 9, 2007, at 12:56 AM, Paul Benedict wrote: My driver is because I cache at the object instance level, and return the same instance for the same primary key. This is a little deeper than ibatis' caching which is at the statement level -- but with multiple statements potentially retur

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
On Oct 17, 2006, at 11:25 AM, Tom Duffey wrote:On Oct 17, 2006, at 11:22 AM, Jeff Butler wrote:Never mind - the change was made prior to that.  BTW - the fisheye link on the iBATIS homepage is VERY usefull when trying to see what shanges have been committed to SVN.   I'll take a look in m

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
only deployed ibatis-sqlmap-2.jar from trunk into my application so if the change was in ibatis-common then I didn't pick it up.  I'm rebuilding now and will deploy everything from trunk and let you know if it helps.Thanks,TomOn 10/17/06, Tom Duffey <[EMAIL PROTECTED]> wrote:On O

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
m persists?I'm already using trunk from a couple days ago but will update and try again.Tom On 10/17/06, Tom Duffey <[EMAIL PROTECTED]> wrote:On Oct 17, 2006, at 10:53 AM, Jeff Butler wrote: There haven't been many changes since the 2.2.0 release - and none in this area of t

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
PROTECTED] > wrote: I'm using 2.2.0 that I built from source on 9/22/06. (I guess that's old by now)From: Tom Duffey <[EMAIL PROTECTED]> [mailto: Tom Duffey < [EMAIL PROTECTED]>] Sent: Tuesday, October 17, 2006 8:40 AM To: user-java@ibatis.apache.orgSubject: Re: Proble

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
what it's worth, I worked around the problem by explicitly specifying all of my type handlers inline in my parameter maps.Tom   On 10/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: I'm using 2.2.0 that I built from source on 9/22/06. (I guess that's old by now)

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
MsgType { REQUEST, CONFIRM }  The TypeHandler declaration looks like the following: <typeHandler javaType="com.sybase.cosmos.domain.DocumentStore$MsgType" callback="com.sybase.cosmos.dao.impl.ibatis.extentions.DocMsgTypeTypeHandlerCallback" /> From: Tom Duffey <[

Re: Problem w/enum and TypeHandlerCallback

2006-10-17 Thread Tom Duffey
iBATIS is looking for a type handler for the enclosing class on insert/update instead of the enum.  Using externally declared enums w/the same type handler works fine.Tom From: Tom Duffey <[EMAIL PROTECTED]> [mailto:Tom Duffey <[EMAIL PROTECTED]>] Sent: Monday, October 16, 200

Problem w/enum and TypeHandlerCallback

2006-10-16 Thread Tom Duffey
Hi All, I'm having a problem with Java 5 Enums and iBATIS TypeHandlerCallbacks. I've read the wiki article and it doesn't help with my particular issue. Retrieving objects is working fine but inserting/updating them is throwing this NPE: java.lang.NullPointerException at com.ibatis.

Re: Type handlers for associated objects

2006-10-11 Thread Tom Duffey
On Oct 11, 2006, at 4:50 PM, Tom Duffey wrote: Can I use a type handler to convert results of type BaseMeter to their more appropriate concrete classes by checking the "type" property of the base meter result? Is there some other way that people handle this? My situati

Type handlers for associated objects

2006-10-11 Thread Tom Duffey
Hi All, Before I try this I'd like some feedback to see if I'm wasting my time or if there is a better alternative. Suppose I have a building and a building has electric, water and gas meters. My SQL maps for this scenario look something like: select="Met

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
ser[] justForTesting) { this.justForTesting = justForTesting; }}Also I have another lazily-loaded association defined with a single User rather than an array of them which is working fine.Tom From: Tom Duffey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 September 2006 12:17To: user-java@ibatis.apache.

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
] (User is one of my classes) and List.Tom From: Tom Duffey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 September 2006 11:36To: user-java@ibatis.apache.orgSubject: Re: lazy loading confusion On Sep 27, 2006, at 10:00 AM, Tom Duffey wrote: On Sep 27, 2006, at 9:51 AM, Jeff Butler wrote:

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
On Sep 27, 2006, at 10:00 AM, Tom Duffey wrote:On Sep 27, 2006, at 9:51 AM, Jeff Butler wrote:Try explicitly enabling lazy loading:         lazyLoadingEnabled="true"/>It seems to me I remember some others reporting that it had to be specifically enabled (even though it is supposed to

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
g?Using those settings results in the same thing.  I should mention that I have other lazily-loaded properties that iBATIS is handling properly.  I'm going to try removing Spring and see if it makes any difference.Tom On 9/27/06, Tom Duffey <[EMAIL PROTECTED]> wrote: On Sep 27, 2006, at 9:

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
On Sep 27, 2006, at 9:40 AM, Poitras Christian wrote: Try to turn on enhancement (also add needed jar) for lazy loading and see what happens. Same thing. I'm using CGLIB 2.1 which was the oldest version I could find on their site. Tom -Original Message- From: Tom D

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
The getter is never called, only the setter. This application is using Spring 1.x for some AOP logging, could it be manipulating some bytecode somehow to make iBATIS think it needs to load the data? Tom Christian -Original Message----- From: Tom Duffey [mailto:[EMAIL PROTECTED]

Re: lazy loading confusion

2006-09-27 Thread Tom Duffey
ot; /> implementation="org.projectFoundry.persistence.user.UserSqlMapDao"/> etc. Tom -Original Message- From: Tom Duffey [mailto:[EMAIL PROTECTED] Sent: woensdag 27 september 2006 7:34 To: user-java@ibatis.apache.org Subject: lazy loading confusion Hi All, I have a Project class w

lazy loading confusion

2006-09-26 Thread Tom Duffey
" and added a new members2 attribute to the project class (To make sure I didn't miss any calls to getMembers) and sure enough it is still populated when I retrieve the project. What gives? I thought the point of lazy loading was to not load data unless I ask for it. I'm using