296297298299300301302303
if (!isValidAssociationForService(name)) { appendAssociationName(buf, name); } } if (buf.length() > 0) { throw new ObjectSpecificationException("Service object " + getFullIdentifier() + " should have no fields, but has: " + buf); } }
608609610611612613614
for (final ObjectAssociation objectAssociation : getAssociations()) { if (objectAssociation.getId().equals(id)) { return objectAssociation; } } throw new ObjectSpecificationException("No association called '" + id + "' in '" + getSingularName() + "'"); }
310311312313314315316317
690691692693694695696
for (final ObjectAssociation objectAssociation : getAssociations(Contributed.INCLUDED)) { if (objectAssociation.getId().equals(id)) { return objectAssociation; } } throw new ObjectSpecificationException("No association called '" + id + "' in '" + getSingularName() + "'"); }
312313314315316317318319320
588589590591592593594