I am looking for best practices to follow when using hibernate.
This is I think are tutorial links.
Main Topics
Browse All TopicsI need links or your inputs to list down best practices in hibernate.
Thanks for inputs.
-/karan.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
http://www.vaannila.com/hi
have example for practices only !! they are not given more theory !
1 - Composite keys must always be mapped only by identifiers, not associations, because when you map an association to a primary key, everytime that you execute a session.find on this object, all the associations defined at composite key will be eagerly loaded.
2- Always use *Hibernate.initialize(prop
3 - Always prefer to use the session.merge mechanism instead of session.save, session.update or session.saveOrUpdate, to prevent abnormal use of session (like the infamous *NonUniqueObjectException*
4- Provide acess to the hibernate API on the Data Access Layer, to provide extensibility on the points that hibernate has poor or no available resource (like providing named queries, native queries, stored procedures executions, updating lock modes on the fly and using the evict and initialize features.
5- Always prefer to use named queries instead of string parsed queries, for cache reasons, and to prevent HQL injection
6- Always prefer to use *HibernateCallback *in conjunction with the hibernateTemplate.
Business Accounts
Answer for Membership
by: dravidnsrPosted on 2009-09-07 at 22:19:17ID: 25278811
http://www.vaannila.com/hi bernate/hi bernate-tu torial/ hib ernate-tut orial.html // very simple for beginners
rnate/stab le/core/re ference/en / html/tuto rial.html // concept wise
ibernate/i ndex.shtml
http://docs.jboss.org/hibe
http://www.roseindia.net/h