This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Hibernate Tips
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
Found an interesting post by Jason Carreira regarding hibernate. I would like to rewrite here, some of the key points from his tips. Full text is available at the title of this post that takes you to Jason's blog.
- Use the latest version. - Make all associations lazy. - Define your Session management strategy early. - Define the flush strategy early. - Define your caching strategy early. - Cache your entities. - Understand the lifecycle of identifier creation. - Keep Hibernate source code handy. - Hibernate in Action. A nice book to learn hibernate. - Use profilers.