@Override public List<AssociationSet> getAssociationSets() { return Collections.singletonList( new AssociationSet() .setName(ASSO_SYNC_COLLECTION.getName()) .setAssociation(ASSO_SYNC_COLLECTION) .setEnd1(new AssociationSetEnd().setRole(ROLE_COLLECTION_SYNCS).setEntitySet(getName())) .setEnd2( new AssociationSetEnd() .setRole(ROLE_SYNC_COLLECTION) .setEntitySet(Model.COLLECTION.getName()))); }
@Override public List<Association> getAssociations() { return Collections.singletonList( new Association() .setName(ASSO_SYNC_COLLECTION.getName()) .setEnd1( new AssociationEnd() .setType(Model.COLLECTION.getFullQualifiedName()) .setRole(ROLE_SYNC_COLLECTION) .setMultiplicity(EdmMultiplicity.ZERO_TO_ONE)) .setEnd2( new AssociationEnd() .setType(getFullQualifiedName()) .setRole(ROLE_COLLECTION_SYNCS) .setMultiplicity(EdmMultiplicity.MANY))); }