In the first part of this article, we looked at the basics of how to use enums in Java 5. In this part, we look at some more advanced use cases, including how to use enums with Hibernate.
Hibernate is just about the defacto standard for Java database persistence. With Hibernate 3, it has become even easier to specify how your Java objects are stored in a database. Find out how Java 5 annotations are used by Hibernate to simplify your code and make persisting your data even easier.
For a Java developer, Hibernate 3 annotations offer a terrific way to model the domain layer. Without much effort, you can get Hibernate to generate your database schema automatically, dispensing entirely with SQL scripts. Back in the real world, however, you still need to account for the sometimes obscure naming conventions used by your database administrator.

The Hibernate Criteria API, a powerful and flexible alternative to traditional HQL queries, makes writing all those tricky multi-criteria search functions, as well as dynamic queries in general, much easier.
Simple techniques can often yield serious performance improvements. In this first article of a 3-part series, John Smart shares real-world insights about how to fine-tune your Hibernate queries.There are 8 items tagged with Hibernate. You can view all our tags in the Tag Cloud
Agile ALL Annotations Artifactory Automated Deployment Automated Testing BDD Bugzilla Build Automation Cargo Checkstyle Code Coverage Code Quality Code Reviews Continuous Integration Continuum Distributed Builds EasyB Eclipse Grails Groovy Hibernate Hudson Humour Integration Tests JasperReports Java Javascript JDave JUnit Lucene Maven Mock Objects Mockito Mylyn Nexus Performance Profiling Rome RSS Selenium Smack API Subversion TDD TeamCity Testing Trac training Unit Testing Unit Tests