Examples of ManyToOneMapping


Examples of org.chromattic.core.mapping.value.ManyToOneMapping

          ManyToOne manyToOneAnn = propertyInfo.getAnnotation(ManyToOne.class);
          RelationshipType type = manyToOneAnn.type();

          //
          if (type == RelationshipType.HIERARCHIC) {
            RelationshipMapping hierarchyMapping = new ManyToOneMapping(bvi.getTypeInfo(), RelationshipType.HIERARCHIC);
            PropertyMapping<RelationshipMapping> manyToOneMapping = new PropertyMapping<RelationshipMapping>(propertyInfo, hierarchyMapping);
            propertyMappings.add(manyToOneMapping);
          } else {
            MappedBy mappedBy = propertyInfo.getAnnotation(MappedBy.class);
            if (mappedBy == null) {
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        mapping.setIsReadOnly(false);
        mapping.setIsOptional(isOptional());
        mapping.setAttributeName(getAttributeName());
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setDerivesId(derivesId());
       
        // Process join fetch type.
        processJoinFetch(getJoinFetch(), mapping);
       
        // Process the batch fetch if specified.
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        processRelationshipMapping(mapping);
       
        mapping.setIsOptional(isOptional());
        mapping.setDerivesId(derivesId());
       
        // Process the indirection.
        processIndirection(mapping);
       
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

     */
    public void process() {
        super.process();
       
        // Initialize our mapping now with what we found.
        ManyToOneMapping mapping = initManyToOneMapping();
               
        // Process the owning keys for this mapping.
        processOwningMappingKeys(mapping);
    }
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        processRelationshipMapping(mapping);
       
        mapping.setIsOptional(isOptional());
        mapping.setDerivesId(derivesId());
       
        // Process the indirection.
        processIndirection(mapping);
       
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        mapping.setIsReadOnly(false);
        mapping.setIsOptional(isOptional());
        mapping.setAttributeName(getAttributeName());
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setDerivesId(derivesId());
       
        // Process join fetch type.
        processJoinFetch(getJoinFetch(), mapping);
       
        // Process the batch fetch if specified.
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

     * INTERNAL:
     * Process a many to one setting into an EclipseLink OneToOneMapping.
     */
    public void process() {
        // Initialize our mapping now with what we found.
        ManyToOneMapping mapping = initManyToOneMapping();
        setMapping(mapping);
               
        // Process the owning keys for this mapping.
        processOwningMappingKeys(mapping);
    }
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    @Override
    public void process() {
        super.process();
       
        // Initialize our mapping now with what we found.
        ManyToOneMapping mapping = initManyToOneMapping();
               
        // Process the owning keys for this mapping.
        processOwningMappingKeys(mapping);
    }
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        processRelationshipMapping(mapping);
       
        mapping.setIsOptional(isOptional());
        mapping.setDerivesId(derivesId());
       
        // Process the indirection.
        processIndirection(mapping);
       
        // Process a @ReturnInsert and @ReturnUpdate (to log a warning message)
View Full Code Here

Examples of org.eclipse.persistence.mappings.ManyToOneMapping

    /**
     * INTERNAL:
     * Initialize a ManyToOneMapping.
     */
    protected ManyToOneMapping initManyToOneMapping() {
        ManyToOneMapping mapping = new ManyToOneMapping();
        mapping.setIsReadOnly(false);
        mapping.setIsOptional(isOptional());
        mapping.setAttributeName(getAttributeName());
        mapping.setReferenceClassName(getReferenceClassName());
        mapping.setDerivesId(derivesId());
       
        // Process join fetch type.
        processJoinFetch(getJoinFetch(), mapping);
       
        // Process the batch fetch if specified.
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.