Hibernate configuration and DAOFactory added.