Hi everyone, it seems that I made a mistake by saying something nasty about hibernate :)
The first thing we came across is the problem of lazy instantiation. Let's say you have object A that has a relation to obect B. But you only want to load A and B later when it is used. Hibernate cannot handle this (this is an open bug but maybe fixed in the new 2.0 beta). We have found a way around this but it is not very nice. Another thing is definitely the caching in hibernate. You never know when hibernate actually saves the data to your DB. This makes it very difficult in an evironment where you access your DB from different points. The last thing that kept us busy was the fact the (assume the schema as above) when you save B then A does not get updated. This means you have to take care of updating A manually when you change B. It took some time to figure this one out. Well, you can always restart your server and everything is fine :) It seems to me that this update problem is a big thing since I know that castor JDO is struggling at the same point. But I must also say that the reverse engineering is nice and saved us some time. So, I have to go back to my project and get some more experience with hibernate. When I stumble the next time I will let you know......... Andreas ----- Original Message ----- From: "kiuma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 8:27 AM Subject: Re: [JBoss-user] Re: Hibernate or ejb > Kevin O'Neill wrote: > > >On Thu, 13 Mar 2003 18:52:39 +0100, Andreas Mecky wrote: > > > > > > > >>we are currently using hibernate in a web project. Very nice. We did some > >>additional code generation > >>and it is very handy. > >> > >>BUT: stay with your EJB-CMP. It will prevent a lot of headache. There are > >>certain "little things" > >>with hibernate that makes life as a developer painfull. > >> > >> > > > >Can you elaborate? > > > ><snip/> > > > > > > > Ok, sorry, as anyone who doesn't read messages related to topics in a > clever way I made a 'stupid' question. For those who are interested in > diffs read at this http://sourceforge.net/forum/message.php?msg_id=1867312 > > Anyway Kevin, please explain to us what > > <<certain "little things" > with hibernate that makes life as a developer painfull>> > > are > > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user