/** * @param name * @return {@link EntityType} for method chaining */ @Override public EntityType setName(final String name) { super.setName(name); return this; }
/** * @param name * @return {@link EntityType} for method chaining */ @Override public EntityType setName(final String name) { super.setName(name); return this; }
/** * @param name * @return {@link EntityType} for method chaining */ @Override public EntityType setName(final String name) { super.setName(name); return this; }
/** * @param name * @return {@link EntityType} for method chaining */ @Override public EntityType setName(final String name) { super.setName(name); return this; }
public ComplexType buildComplexType() { ComplexType complexType = new ComplexType(); if (baseEntityType != null) { complexType.setBaseType(baseEntityType); } return complexType.setName(name).setProperties(properties); }
public ComplexType buildComplexType() { ComplexType complexType = new ComplexType(); if (baseEntityType != null) { complexType.setBaseType(baseEntityType); } return complexType.setName(name).setProperties(properties); }
public ComplexType buildComplexType() { ComplexType complexType = new ComplexType(); if (baseEntityType != null) { complexType.setBaseType(baseEntityType); } return complexType.setName(name).setProperties(properties); }
List<Property> properties = new ArrayList<Property>(); List<AnnotationElement> annotationElements = new ArrayList<AnnotationElement>(); complexType.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); String baseType = reader.getAttributeValue(null, XmlMetadataConstants.EDM_BASE_TYPE); if (baseType != null) {
List<Property> properties = new ArrayList<Property>(); List<AnnotationElement> annotationElements = new ArrayList<AnnotationElement>(); complexType.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); String baseType = reader.getAttributeValue(null, XmlMetadataConstants.EDM_BASE_TYPE); if (baseType != null) {
List<Property> properties = new ArrayList<Property>(); List<AnnotationElement> annotationElements = new ArrayList<AnnotationElement>(); complexType.setName(reader.getAttributeValue(null, XmlMetadataConstants.EDM_NAME)); String baseType = reader.getAttributeValue(null, XmlMetadataConstants.EDM_BASE_TYPE); if (baseType != null) {
public static void build(final JPAEdmComplexType view) { JPAEdmMappingModelAccess mappingModelAccess = view.getJPAEdmMappingModelAccess(); String jpaEmbeddableTypeName = view.getJPAEmbeddableType().getJavaType().getSimpleName(); String edmComplexTypeName = null; if (mappingModelAccess != null && mappingModelAccess.isMappingModelExists()) { edmComplexTypeName = mappingModelAccess.mapJPAEmbeddableType(jpaEmbeddableTypeName); } if (edmComplexTypeName == null) { edmComplexTypeName = jpaEmbeddableTypeName; } view.getEdmComplexType().setName(edmComplexTypeName); ComplexType complexType = view.getEdmComplexType(); complexType.setName(edmComplexTypeName); JPAEdmMapping mapping = new JPAEdmMappingImpl(); mapping.setJPAType(view.getJPAEmbeddableType().getJavaType()); complexType.setMapping((Mapping) mapping); }
public static void build(final JPAEdmComplexType view) { JPAEdmMappingModelAccess mappingModelAccess = view.getJPAEdmMappingModelAccess(); String jpaEmbeddableTypeName = view.getJPAEmbeddableType().getJavaType().getSimpleName(); String edmComplexTypeName = null; if (mappingModelAccess != null && mappingModelAccess.isMappingModelExists()) { edmComplexTypeName = mappingModelAccess.mapJPAEmbeddableType(jpaEmbeddableTypeName); } if (edmComplexTypeName == null) { edmComplexTypeName = jpaEmbeddableTypeName; } view.getEdmComplexType().setName(edmComplexTypeName); ComplexType complexType = view.getEdmComplexType(); complexType.setName(edmComplexTypeName); JPAEdmMapping mapping = new JPAEdmMappingImpl(); mapping.setJPAType(view.getJPAEmbeddableType().getJavaType()); complexType.setMapping((Mapping) mapping); }
private ComplexType clone(ComplexType type) { if (type == null) { return null; } ComplexType newType = new ComplexType(); newType.setAbstract(type.isAbstract()); newType.setAnnotationAttributes(type.getAnnotationAttributes()); newType.setAnnotationElements(type.getAnnotationElements()); newType.setBaseType(type.getBaseType()); newType.setDocumentation(type.getDocumentation()); newType.setMapping(type.getMapping()); newType.setName(type.getName()); newType.setProperties(cloneProperties(type.getProperties())); return newType; }