Registry code with DAO generated by Hibernate.