In this HW you will have the following structure in DAO implementations:
public class ActorDaoImpl extends AbstractDao implements ActorDao {
public ActorDaoImpl(SessionFactory sessionFactory) {
super(sessionFactory);
}
}
Such structure is a good example of Dependency Injection implementation. Please, do not modify this.
Your task is to implement the following steps:
- add required hibernate dependencies
- complete implementation of all classes in the
mate/academy/hibernate/relations/model
package - complete implementation of all classes in the
mate/academy/hibernate/relations/dao/impl
package - create your custom unchecked DataProcessingException and throw it in the catch block on dao layer
- complete implementation of all classes in the
mate/academy/hibernate/relations/service/impl/
package - create
hibernate.cfg.xml
file and implementmate/academy/hibernate/relations/util/HibernateUtil
class (this is required for next step) - make
mate/academy/Main.java
work (you should be able to runmain()
method without any errors)