protected void prepareMapping(ClassMetaData meta) { // make sure superclass resolved first; resolving superclass may have // resolved this mapping ClassMapping mapping = (ClassMapping) meta; ClassMapping sup = mapping.getPCSuperclassMapping(); if (sup != null && (mapping.getResolve() & MODE_MAPPING) != 0) return; // define superclass fields after mapping class, so we can tell whether // the class is mapped and needs to redefine abstract superclass fields getStrategyInstaller().installStrategy(mapping); mapping.defineSuperclassFields(mapping.getJoinablePCSuperclassMapping() == null); // resolve everything that doesn't involve relations to allow relation // mappings to use the others as joinables mapping.resolveNonRelationMappings(); }
protected void prepareMapping(ClassMetaData meta) { // make sure superclass resolved first; resolving superclass may have // resolved this mapping ClassMapping mapping = (ClassMapping) meta; ClassMapping sup = mapping.getPCSuperclassMapping(); if (sup != null && (mapping.getResolve() & MODE_MAPPING) != 0) return; // if this mapping is not for a managed interface, ensure that if // we have an inheritance hierarchy there is a default strategy // applied to the root class if (!mapping.getDescribedType().isInterface() && !mapping.isEmbeddedOnly()) { // if an inheritance strategy has not been set on this mapping // determine if needs one and if so, set it if (!hasInheritanceStrategy(mapping)) { ClassMapping baseMapping = findBaseClassMapping(mapping); if (baseMapping != null) setDefaultInheritanceStrategy(baseMapping); } } // define superclass fields after mapping class, so we can tell whether // the class is mapped and needs to redefine abstract superclass fields getStrategyInstaller().installStrategy(mapping); mapping.defineSuperclassFields(mapping.getJoinablePCSuperclassMapping() == null); // resolve everything that doesn't involve relations to allow relation // mappings to use the others as joinables mapping.resolveNonRelationMappings(); }
protected void prepareMapping(ClassMetaData meta) { // make sure superclass resolved first; resolving superclass may have // resolved this mapping ClassMapping mapping = (ClassMapping) meta; ClassMapping sup = mapping.getPCSuperclassMapping(); if (sup != null && (mapping.getResolve() & MODE_MAPPING) != 0) return; // if this mapping is not for a managed interface, ensure that if // we have an inheritance hierarchy there is a default strategy // applied to the root class if (!mapping.getDescribedType().isInterface() && !mapping.isEmbeddedOnly()) { // if an inheritance strategy has not been set on this mapping // determine if needs one and if so, set it if (!hasInheritanceStrategy(mapping)) { ClassMapping baseMapping = findBaseClassMapping(mapping); if (baseMapping != null) setDefaultInheritanceStrategy(baseMapping); } } // define superclass fields after mapping class, so we can tell whether // the class is mapped and needs to redefine abstract superclass fields getStrategyInstaller().installStrategy(mapping); mapping.defineSuperclassFields(mapping.getJoinablePCSuperclassMapping() == null); // resolve everything that doesn't involve relations to allow relation // mappings to use the others as joinables mapping.resolveNonRelationMappings(); }
protected void prepareMapping(ClassMetaData meta) { // make sure superclass resolved first; resolving superclass may have // resolved this mapping ClassMapping mapping = (ClassMapping) meta; ClassMapping sup = mapping.getPCSuperclassMapping(); if (sup != null && (mapping.getResolve() & MODE_MAPPING) != 0) return; // if this mapping is not for a managed interface, ensure that if // we have an inheritance hierarchy there is a default strategy // applied to the root class if (!mapping.getDescribedType().isInterface() && !mapping.isEmbeddedOnly()) { // if an inheritance strategy has not been set on this mapping // determine if needs one and if so, set it if (!hasInheritanceStrategy(mapping)) { ClassMapping baseMapping = findBaseClassMapping(mapping); if (baseMapping != null) setDefaultInheritanceStrategy(baseMapping); } } // define superclass fields after mapping class, so we can tell whether // the class is mapped and needs to redefine abstract superclass fields getStrategyInstaller().installStrategy(mapping); mapping.defineSuperclassFields(mapping.getJoinablePCSuperclassMapping() == null); // resolve everything that doesn't involve relations to allow relation // mappings to use the others as joinables mapping.resolveNonRelationMappings(); }
protected void prepareMapping(ClassMetaData meta) { // make sure superclass resolved first; resolving superclass may have // resolved this mapping ClassMapping mapping = (ClassMapping) meta; ClassMapping sup = mapping.getPCSuperclassMapping(); if (sup != null && (mapping.getResolve() & MODE_MAPPING) != 0) return; // if this mapping is not for a managed interface, ensure that if // we have an inheritance hierarchy there is a default strategy // applied to the root class if (!mapping.getDescribedType().isInterface() && !mapping.isEmbeddedOnly()) { // if an inheritance strategy has not been set on this mapping // determine if needs one and if so, set it if (!hasInheritanceStrategy(mapping)) { ClassMapping baseMapping = findBaseClassMapping(mapping); if (baseMapping != null) setDefaultInheritanceStrategy(baseMapping); } } // define superclass fields after mapping class, so we can tell whether // the class is mapped and needs to redefine abstract superclass fields getStrategyInstaller().installStrategy(mapping); mapping.defineSuperclassFields(mapping.getJoinablePCSuperclassMapping() == null); // resolve everything that doesn't involve relations to allow relation // mappings to use the others as joinables mapping.resolveNonRelationMappings(); }
resolveNonRelationMappings(); FieldMapping[] fms = getFieldMappings(); for (int i = 0; i < fms.length; i++)
resolveNonRelationMappings(); FieldMapping[] fms = getFieldMappings(); for (int i = 0; i < fms.length; i++) {
resolveNonRelationMappings(); FieldMapping[] fms = getFieldMappings(); for (int i = 0; i < fms.length; i++) {
resolveNonRelationMappings(); FieldMapping[] fms = getFieldMappings(); for (int i = 0; i < fms.length; i++) {
resolveNonRelationMappings(); FieldMapping[] fms = getFieldMappings(); for (int i = 0; i < fms.length; i++) {