Examples of addDirectMapping()


Examples of org.eclipse.persistence.jpa.dynamic.JPADynamicTypeBuilder.addDirectMapping()

        }

        Class<?> propertyType = descriptor.getPropertyType();

        if (isDirectMappingType(propertyType)) {
          typeBuilder.addDirectMapping(propertyName, propertyType, propertyName);
        }
      }
    }

    // add the relationships to the dynamic type builders
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

                        structureMapping.setReferenceClassName(((RecordHelper)top).recordName().toLowerCase());
                        ordt.addMapping(structureMapping);
                    }
                }
                else {
                    ordt.addDirectMapping(lFieldName, lFieldName);
                }
            }
        }
        else {
            System.identityHashCode(listenerHelper);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

    descriptor.addFieldOrdering(departmentIdColumn);
    descriptor.addFieldOrdering(departmentNameColumn);
    descriptor.addFieldOrdering(departmentManagerColumn);
    descriptor.addFieldOrdering(departmentLocationColumn);
   
    descriptor.addDirectMapping(departmentIdEntity,
                                departmentIdColumn);
    descriptor.addDirectMapping(departmentNameEntity,
                                departmentNameColumn);
    descriptor.addDirectMapping(departmentManagerEntity,
                                departmentManagerColumn);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

    descriptor.addFieldOrdering(departmentManagerColumn);
    descriptor.addFieldOrdering(departmentLocationColumn);
   
    descriptor.addDirectMapping(departmentIdEntity,
                                departmentIdColumn);
    descriptor.addDirectMapping(departmentNameEntity,
                                departmentNameColumn);
    descriptor.addDirectMapping(departmentManagerEntity,
                                departmentManagerColumn);
    descriptor.addDirectMapping(departmentLocationEntity,
                                departmentLocationColumn);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

   
    descriptor.addDirectMapping(departmentIdEntity,
                                departmentIdColumn);
    descriptor.addDirectMapping(departmentNameEntity,
                                departmentNameColumn);
    descriptor.addDirectMapping(departmentManagerEntity,
                                departmentManagerColumn);
    descriptor.addDirectMapping(departmentLocationEntity,
                                departmentLocationColumn);
   
    descriptor.addPrimaryKeyFieldName(departmentIdColumn);
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

                                departmentIdColumn);
    descriptor.addDirectMapping(departmentNameEntity,
                                departmentNameColumn);
    descriptor.addDirectMapping(departmentManagerEntity,
                                departmentManagerColumn);
    descriptor.addDirectMapping(departmentLocationEntity,
                                departmentLocationColumn);
   
    descriptor.addPrimaryKeyFieldName(departmentIdColumn);
    return descriptor;
  }
View Full Code Here

Examples of org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor.addDirectMapping()

                        structureMapping.setReferenceClassName(((RecordHelper)top).recordName().toLowerCase());
                        ordt.addMapping(structureMapping);
                    }
                }
                else {
                    ordt.addDirectMapping(lFieldName, lFieldName);
                }
            }
        }
        else {
            System.identityHashCode(listenerHelper);
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLDescriptor.addDirectMapping()

        XMLDescriptor descriptor = new XMLDescriptor();
        descriptor.setNamespaceResolver(resolver);

        descriptor.setJavaClass(SEPersistenceUnitInfo.class);
       
        descriptor.addDirectMapping("persistenceUnitName", "@name");
       
        // For the canonical model generation we don't exclude the unlisted
        // classes unless explicitly set by the user.
        XMLDirectMapping mapping = new XMLDirectMapping();
        mapping.setAttributeName("excludeUnlistedClasses");
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLDescriptor.addDirectMapping()

     */
    private static XMLDescriptor buildPUPropertyDescriptor(NamespaceResolver resolver) {
        XMLDescriptor descriptor = new XMLDescriptor();
        descriptor.setNamespaceResolver(resolver);
        descriptor.setJavaClass(SEPersistenceUnitProperty.class);
        descriptor.addDirectMapping("name", "@name");
        descriptor.addDirectMapping("value", "@value");
       
        return descriptor;
    }
   
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLDescriptor.addDirectMapping()

    private static XMLDescriptor buildPUPropertyDescriptor(NamespaceResolver resolver) {
        XMLDescriptor descriptor = new XMLDescriptor();
        descriptor.setNamespaceResolver(resolver);
        descriptor.setJavaClass(SEPersistenceUnitProperty.class);
        descriptor.addDirectMapping("name", "@name");
        descriptor.addDirectMapping("value", "@value");
       
        return descriptor;
    }
   
    /**
 
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.