throw new UnsupportedOperationException();
}
public void setManyProperty(Property property, Object value) {
DatabaseMapping mapping = this.getJAXBMappingForProperty((SDOProperty) property);
ContainerMapping containerMapping = (ContainerMapping) mapping;
ContainerPolicy containerPolicy = containerMapping.getContainerPolicy();
AbstractSession session = ((JAXBContext) jaxbHelperContext.getJAXBContext()).getXMLContext().getSession(entity);
Collection collection = (Collection) value;
if (!property.getType().isDataType()) {
collection = getJAXBHelperContext().unwrap(collection);
}
Iterator collectionIterator = collection.iterator();
Object container = containerMapping.getContainerPolicy().containerInstance();
while (collectionIterator.hasNext()) {
Object collectionValue = collectionIterator.next();
containerPolicy.addInto(collectionValue, container, session);
}
mapping.setAttributeValueInObject(entity, container);