work with config Hibernate