-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Converting CMP 2.0 EJBs over to Hibernate
PostPosted: Wed Feb 18, 2004 8:29 pm 
Newbie

Joined: Wed Feb 18, 2004 7:17 pm
Posts: 2
I'm interested in seeing who has done this conversion, and what your experiences were. How many EJBs did you convert? How long did it take you? Any recommendations for things to watch out for along the way?

Thanks,

Erik


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 9:53 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have only converted a small number 10 or so. Even so I would recommend you use the Entity EJBs as a guideline and build from scratch (start from the database schema). Use Middlegen (or other tools) to assist the process. The queries should be reviewed since Hibernate offers so much great power a fresh start using the HQL feature set will result in less code and likely fast execution than your previous Entity EJB solution.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 5:40 pm 
Newbie

Joined: Wed Feb 18, 2004 7:17 pm
Posts: 2
Thanks for your input, David. I'll be sure and review our queries as we go. I'm not sure about the convert vs. start from scratch issue yet -- we have just over 100 entity beans, and a rich domain model. Since our entity beans do a lot more than just persist data for us, I'm thinking we may be better off converting instead of replacing-- but still considering the options. I was thinking I might be able to write some simple conversion scripts to help out even..


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 10:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you have a good domain model already then your half way there just need to create the HBMs either by adding XDoclect markup or generating manually or use a tool like MIddlegen to provide the kick start. The real issue is in the DAO level, finders etc. The queries is where you have the option to use a more powerfull syntax and reduce database hits. Given thats its a decent size effort a few experience notes on the wiki might prove to be of value to others that follow your footsteps.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.