You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Rudra.Panda" <Ru...@target.com> on 2010/03/08 22:41:47 UTC
iBatis upgrade question
Hi,
I use ibatis-2.3.0.677 in my current project. I wanted to upgrade to iBatis 3.0, and hence replaced ibatis-2.x.jar with ibatis-3-core-3.0.0.220.jar. However, I get compilation error for the followings
import com.ibatis.sqlmap.client.event.RowHandler;
import com.ibatis.sqlmap.engine.execution.BatchException;
Is there a guiding document on upgrading from ibatis-2.x to ibatis-3.0?
Thanks,
Rudra Panda | Sr. Technical Architect | TTS Merchandising & Supply Chain Development | *Target | 33 S. 6th Street, CC-18221 | Minneapolis, MN 55402 | 612.304.4458 (ph) | 612.385.0193 (cell)
Re: iBatis upgrade question
Posted by François Schiettecatte <fs...@gmail.com>.
Rudra
I have just updated a project from 2.x to 3.x. Specifically to your point, RowHandler was replaced by ResultHandler which passes in a ResultContext from which you can get the object using ResultContext.getResultObject().
More generally, you will need to:
- review your ibatis xml configuration file
- review your map files
- add jdbcType to map file for fields which allow NULL
- need asm-3.2 - http://asm.ow2.org/
- SqlSession is quite a different beast from SqlMapClient
- check use of autocommit in sessions
- you will need to explicitly close sessions
- you should review SqlSession.clearCache() to see if it applies to your project.
That's all the notes I have for my project, I am sure there is more depending on the features you used.
Cheers
François
On Mar 8, 2010, at 4:41 PM, Rudra.Panda wrote:
> Hi,
>
> I use ibatis-2.3.0.677 in my current project. I wanted to upgrade to iBatis 3.0, and hence replaced ibatis-2.x.jar with ibatis-3-core-3.0.0.220.jar. However, I get compilation error for the followings
>
> import com.ibatis.sqlmap.client.event.RowHandler;
> import com.ibatis.sqlmap.engine.execution.BatchException;
>
> Is there a guiding document on upgrading from ibatis-2.x to ibatis-3.0?
>
> Thanks,
> Rudra Panda | Sr. Technical Architect | TTS Merchandising & Supply Chain Development | ¤Target | 33 S. 6th Street, CC-18221 | Minneapolis, MN 55402 | 612.304.4458 (ph) | 612.385.0193 (cell)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org