public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }
public void copyMappingInfo(ValueMapping vm) { setValueMappedBy(vm.getValueMappedBy()); setPolymorphic(vm.getPolymorphic()); _info.copy(vm.getValueInfo()); ClassMapping embed = vm.getEmbeddedMapping(); if (embed != null && getEmbeddedMapping() != null) { FieldMapping[] tmplates = embed.getFieldMappings(); FieldMapping[] fms = getEmbeddedMapping().getFieldMappings(); if (tmplates.length == fms.length) for (int i = 0; i < fms.length; i++) fms[i].copyMappingInfo(tmplates[i]); } }