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 "C. Bergström" <cb...@netsyncro.com> on 2008/03/27 10:29:20 UTC

Migrating away from Hibernate

Hi list!

My primary goal is to take a large applications with hundreds/thousands
of classes that use hibernate annotations and migrate it over to Ibatis.

My secondary goal would be to take a large application with hibernate
mapping files and convert them over to Ibatis..

I've looked on the FAQ and Wiki and of course didn't find what I'm
looking for, but have some crazy/loose ideas I'd like to get feedback on
and see if anyone else is interested.

After using Elvyx to do performance profiling on an app using Hibernate
I started to get the idea of how to automate this migration process.
Even if the generated hibernate sql is horrible it should be possible
with reflection to create a mapping file.  I realize this is a pretty
far out idea, but I see it not only for this client, but others..
ideas/suggestions/feedback?

Thanks for the minute.

./Christopher


Re: Migrating away from Hibernate

Posted by Clinton Begin <cl...@gmail.com>.
Rather than trying to convert the hibernate mappings, you might instead just
try using Abator to generate new iBATIS mappings and then write tests around
your data access layer to see if you can synchronize the behavior between
the two.

Clinton

On Thu, Mar 27, 2008 at 3:29 AM, C. Bergström <cb...@netsyncro.com>
wrote:

> Hi list!
>
> My primary goal is to take a large applications with hundreds/thousands
> of classes that use hibernate annotations and migrate it over to Ibatis.
>
> My secondary goal would be to take a large application with hibernate
> mapping files and convert them over to Ibatis..
>
> I've looked on the FAQ and Wiki and of course didn't find what I'm
> looking for, but have some crazy/loose ideas I'd like to get feedback on
> and see if anyone else is interested.
>
> After using Elvyx to do performance profiling on an app using Hibernate
> I started to get the idea of how to automate this migration process.
> Even if the generated hibernate sql is horrible it should be possible
> with reflection to create a mapping file.  I realize this is a pretty
> far out idea, but I see it not only for this client, but others..
> ideas/suggestions/feedback?
>
> Thanks for the minute.
>
> ./Christopher
>
>