private Property readSimpleProperty(final XMLStreamReader reader, final FullQualifiedName fqName) throws XMLStreamException { SimpleProperty property = new SimpleProperty(); property.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); property.setType(EdmSimpleTypeKind.valueOf(fqName.getName())); return property; }
private Property readSimpleProperty(final XMLStreamReader reader, final FullQualifiedName fqName) throws XMLStreamException { SimpleProperty property = new SimpleProperty(); property.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); property.setType(EdmSimpleTypeKind.valueOf(fqName.getName())); return property; }
private Property readSimpleProperty(final XMLStreamReader reader, final FullQualifiedName fqName) throws XMLStreamException { SimpleProperty property = new SimpleProperty(); property.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); property.setType(EdmSimpleTypeKind.valueOf(fqName.getName())); return property; }
private Property createSimpleProperty(final EdmProperty ep, final Field field) { SimpleProperty sp = new SimpleProperty(); String entityName = ANNOTATION_HELPER.getPropertyName(field); sp.setName(entityName); // EdmType type = ep.type(); if (type == EdmType.NULL) { type = getEdmType(field.getType()); } sp.setType(ANNOTATION_HELPER.mapTypeKind(type)); return sp; }
private Property createSimpleProperty(final EdmProperty ep, final Field field) { SimpleProperty sp = new SimpleProperty(); String entityName = ANNOTATION_HELPER.getPropertyName(field); sp.setName(entityName); // EdmType type = ep.type(); if (type == EdmType.NULL) { type = getEdmType(field.getType()); } sp.setType(ANNOTATION_HELPER.mapTypeKind(type)); sp.setFacets(createFacets(ep.facets(), field.getAnnotation(EdmConcurrencyControl.class))); return sp; }
private Property createSimpleProperty(final EdmProperty ep, final Field field) { SimpleProperty sp = new SimpleProperty(); String entityName = ANNOTATION_HELPER.getPropertyName(field); sp.setName(entityName); // EdmType type = ep.type(); if (type == EdmType.NULL) { type = getEdmType(field.getType()); } sp.setType(ANNOTATION_HELPER.mapTypeKind(type)); sp.setFacets(createFacets(ep.facets(), field.getAnnotation(EdmConcurrencyControl.class))); return sp; }
.addContent(joinColumn.referencedColumnName() + " -> " + referencedEntityType.getName()), null); currentSimpleProperty = new SimpleProperty(); properties.add(buildSimpleProperty(currentRefAttribute, currentSimpleProperty, joinColumn)); if(joinColumn.nullable()) {
currentSimpleProperty = new SimpleProperty(); properties.add(buildSimpleProperty(currentRefAttribute, currentSimpleProperty, joinColumn)); if(joinColumn.nullable()) {
currentSimpleProperty = new SimpleProperty(); properties.add(buildSimpleProperty(currentAttribute, currentSimpleProperty)); if (((SingularAttribute<?, ?>) currentAttribute).isId()) {
currentSimpleProperty = new SimpleProperty(); properties.add(buildSimpleProperty(currentAttribute, currentSimpleProperty)); break;
SimpleProperty newSimpleProperty = new SimpleProperty(); SimpleProperty oldSimpleProperty = (SimpleProperty) property; newSimpleProperty.setAnnotationAttributes(oldSimpleProperty.getAnnotationAttributes());
SimpleProperty newSimpleProperty = new SimpleProperty(); SimpleProperty oldSimpleProperty = (SimpleProperty) property; newSimpleProperty.setAnnotationAttributes(oldSimpleProperty.getAnnotationAttributes());
private Property clone(Property property) { if (property == null) { return null; } Property newAbstractProperty; if (property instanceof ComplexProperty) { ComplexProperty newProperty = new ComplexProperty(); newProperty.setType(((ComplexProperty) property).getType()); newAbstractProperty = newProperty; } else { SimpleProperty newProperty = new SimpleProperty(); newProperty.setType(((SimpleProperty) property).getType()); newAbstractProperty = newProperty; } newAbstractProperty.setAnnotationAttributes(property .getAnnotationAttributes()); newAbstractProperty.setAnnotationElements(property .getAnnotationElements()); newAbstractProperty.setCustomizableFeedMappings(property .getCustomizableFeedMappings()); newAbstractProperty.setDocumentation(property.getDocumentation()); newAbstractProperty.setFacets(property.getFacets()); newAbstractProperty.setMapping(property.getMapping()); newAbstractProperty.setMimeType(property.getMimeType()); newAbstractProperty.setName(property.getName()); return newAbstractProperty; }