Set<GeneratedId> () { Set<GeneratedId> assignmentIds = new HashSet<GeneratedId>(); Asgnmt_masterList amList = asgnmtMaster.getCompAsgnmtMasters(); for(Asgnmt_master am : amList) { assignmentIds.add(am.getAsgnmt()); } return assignmentIds; }