Examples of EdmMultiplicity


Examples of org.odata4j.edm.EdmMultiplicity

      if (!newEntity.getKind().equals(targetEntityKind)) {
        throw new NotImplementedException("EdmNavigationProperty " + targetNavProp + " is not of expected kind. Expecting " + targetEntityKind + ", got " + newEntity.getKind() + ".");
      }
    }

    EdmMultiplicity multiplicity = ees.getType().findNavigationProperty(targetNavProp).getToRole().getMultiplicity();
    if (multiplicity == EdmMultiplicity.ZERO_TO_ONE) {
      entity.setProperty(targetNavProp, newEntity != null ? newEntity.getKey() : null);
    } else {
      @SuppressWarnings("unchecked")
      Collection<Key> keys = (Collection<Key>) entity.getProperty(targetNavProp);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.