entity, dao, ToEntity conversion