@Override @CoreDataModificationStatus( modificationType = ModificationType.UPDATE, entityClass = OrgPartDO.class) public void deleteOrgPartsByOrg(ServiceContext context, Long orgId) { for (OrgPartDO orgPart : orgPartDAO.findOrgPartsForOrg(orgId)) { orgPartDAO.delete(orgPart); } }
@Override public List<OrgPart> findOrgPartsForOrg(ServiceContext context, Long orgId) { return getMappingService().mapFromDOList(orgPartDAO.findOrgPartsForOrg(orgId)); }