Quantcast

Migrating to myBATIS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Migrating to myBATIS

vnyvh
Currently i am heavily using the iBATIS 2.3 in my applications. But i
have the requirement of pagination which i wanted to implement using
selectList() feature.

How can i migrate my current application to iBATIS-core-3.0.jar, I am
getting compilation error for com.ibatis.sqlmap.client.SqlMapClient
class.

Is ther eany guide or document for the migration or i am using wrong
jar?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Migrating to myBATIS

Eduardo Macarron
MyBatis 3 is not a drop-in replacement. You will need to change your
code.

Anyway selectList is also on mybatis 2.x and... the best way to
implement pagination is leaving it to database manager using its sql
pagination features.

On 22 sep, 21:34, vnyvh <[hidden email]> wrote:

> Currently i am heavily using the iBATIS 2.3 in my applications. But i
> have the requirement of pagination which i wanted to implement using
> selectList() feature.
>
> How can i migrate my current application to iBATIS-core-3.0.jar, I am
> getting compilation error for com.ibatis.sqlmap.client.SqlMapClient
> class.
>
> Is ther eany guide or document for the migration or i am using wrong
> jar?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Migrating to myBATIS

Clinton Begin
Administrator
Now that we have a start on the XML conversion tool (submitted by a community member and currently being moved forward by a few people)... 

We can also create an adapter layer that will allow for most iBATIS 2.x code to run on MyBatis 3 without too many changes. 

I already wrote something like this so that all of the iBATIS 2.x unit tests could be run aginst MyBatis 3.  

Might be worth looking into as a sub-project.

Clinton

On Thu, Sep 23, 2010 at 1:49 AM, Eduardo <[hidden email]> wrote:
MyBatis 3 is not a drop-in replacement. You will need to change your
code.

Anyway selectList is also on mybatis 2.x and... the best way to
implement pagination is leaving it to database manager using its sql
pagination features.

On 22 sep, 21:34, vnyvh <[hidden email]> wrote:
> Currently i am heavily using the iBATIS 2.3 in my applications. But i
> have the requirement of pagination which i wanted to implement using
> selectList() feature.
>
> How can i migrate my current application to iBATIS-core-3.0.jar, I am
> getting compilation error for com.ibatis.sqlmap.client.SqlMapClient
> class.
>
> Is ther eany guide or document for the migration or i am using wrong
> jar?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Migrating to myBATIS

Simone Tripodi
Cool idea Clinton, with the Configuration API should be not so hard
reading the iBatis 2.X configs and run them.
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Thu, Sep 23, 2010 at 4:46 PM, Clinton Begin <[hidden email]> wrote:

> Now that we have a start on the XML conversion tool (submitted by a
> community member and currently being moved forward by a few people)...
> We can also create an adapter layer that will allow for most iBATIS 2.x code
> to run on MyBatis 3 without too many changes.
> I already wrote something like this so that all of the iBATIS 2.x unit tests
> could be run aginst MyBatis 3.
> Might be worth looking into as a sub-project.
> Clinton
>
> On Thu, Sep 23, 2010 at 1:49 AM, Eduardo <[hidden email]> wrote:
>>
>> MyBatis 3 is not a drop-in replacement. You will need to change your
>> code.
>>
>> Anyway selectList is also on mybatis 2.x and... the best way to
>> implement pagination is leaving it to database manager using its sql
>> pagination features.
>>
>> On 22 sep, 21:34, vnyvh <[hidden email]> wrote:
>> > Currently i am heavily using the iBATIS 2.3 in my applications. But i
>> > have the requirement of pagination which i wanted to implement using
>> > selectList() feature.
>> >
>> > How can i migrate my current application to iBATIS-core-3.0.jar, I am
>> > getting compilation error for com.ibatis.sqlmap.client.SqlMapClient
>> > class.
>> >
>> > Is ther eany guide or document for the migration or i am using wrong
>> > jar?
>
Loading...