Need to update Hibernate version to 3.6.8.FINAL which fixes a bug with JPA.