Generic entity and DAO base structure