Examples of useCollectionClassName()


Examples of org.eclipse.persistence.oxm.mappings.XMLDirectMapping.useCollectionClassName()

                            XMLField field = new XMLField(fieldName.toLowerCase() + "/" +
                                ITEM_MAPPING_NAME + "/text()");
                            field.setRequired(true);
                            fieldMapping.setField(field);
                            field.setSchemaType(qnameFromDatabaseType(componentType));
                            fieldMapping.useCollectionClassName("java.util.ArrayList");
                            AbstractNullPolicy nullPolicy = fieldMapping.getNullPolicy();
                            nullPolicy.setNullRepresentedByEmptyNode(false);
                            nullPolicy.setMarshalNullRepresentation(XSI_NIL);
                            nullPolicy.setNullRepresentedByXsiNil(true);
                            fieldMapping.setNullPolicy(nullPolicy);
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.