Added generics to DAO-classes
Created enum-class for error codes od DAOException
DTO removed
Entities in some service methods replaced by entity IDs and entity unique fields