By markphip
via coconut-palm-software.com
Published: Jan 31 2007 / 20:16
If you’re writing an Eclipse RCP or a Swing application, your default choice for a relational mapper will probably be Hibernate. It was our choice too, and we have lived to regret this decision. Our new choice, iBatis, seems to fit what we need very handily.



Comments
Konstantin Scheglov replied ago:
Yes, I've fought with Hibernate couple months and after all thrown it away and wrote my own "trivial" ORM implementation using CGLib. I don't need anything special from ORM - just simple support for loading/writing objects and master/details, exactly as I do them using SQL, but using objects with annotations. This removes most Statement/ResultSet operations and not too complex/generic/smart to be PITA itself.
Gene Gotimer complained ago:
dzone@portinfo.com reported this link as inaccurate on 02/01/2007 @ 04:25:45
iBatis may indeed be the better choice, but all this article points out is that he configured Hibernate for use with a webapp and it performed badly with his RCP app. He never tried configuring it correctly, and he didn't understand how to manage his Hibernate sessions.
JensSchauder replied ago:
I agree. They got a problem and instead of trying to understand what is going on just switched to a weaker tool.
If anybody is looking for a working aproach with hibernate, have a look at http://blog.schauderhaft.de/2008/09/28/hibernate-sessions-in-two-tier-rich-client-applications/
,
Voters For This Link (13)
Voters Against This Link (1)