Skip to content

Generic Dao

4 classes 3 interfaces with interface implementation, inheritance

classDiagram
    class EmployeeDAO {
        +findByLastName(laststring Name, : List<Employee>)
    }
    class DepartmentDAO {
    }
    class EmployeeJDBCDAO {
    }
    class GenericDAO_TK_ {
        +findAll(ArrayList<T>)
        +findById(id K) T
        +update(T entity)
        +delete(T entity)
        +deleteByKey(K id)
        +create(T entity)
    }
    class DepartementMysqlDAO {
    }
    class EmployeeJPADAO {
    }
    class EmployeeHibernateDAO {
    }
    EmployeeJDBCDAO ..|> EmployeeDAO
    EmployeeDAO --|> GenericDAO_TK_
    DepartmentDAO --|> GenericDAO_TK_
    DepartementMysqlDAO ..|> DepartmentDAO
    EmployeeJPADAO ..|> EmployeeDAO
    EmployeeHibernateDAO ..|> EmployeeDAO