/** * @param mapping * @return {@link EntityType} for method chaining */ @Override public EntityType setMapping(final Mapping mapping) { super.setMapping(mapping); return this; }
/** * @param mapping * @return {@link EntityType} for method chaining */ @Override public EntityType setMapping(final Mapping mapping) { super.setMapping(mapping); return this; }
/** * @param mapping * @return {@link EntityType} for method chaining */ @Override public EntityType setMapping(final Mapping mapping) { super.setMapping(mapping); return this; }
/** * @param mapping * @return {@link EntityType} for method chaining */ @Override public EntityType setMapping(final Mapping mapping) { super.setMapping(mapping); return this; }
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; }