/** * Set the Java type of the column for the given value. */ private static void setColumnJavaType(ValueMapping vm) { Column[] cols = vm.getColumns(); if (cols.length == 1) cols[0].setJavaType(vm.getDeclaredTypeCode()); }
/** * Set the Java type of the column for the given value. */ private static void setColumnJavaType(ValueMapping vm) { Column[] cols = vm.getColumns(); if (cols.length == 1) cols[0].setJavaType(vm.getDeclaredTypeCode()); }
/** * Set the Java type of the column for the given value. */ private static void setColumnJavaType(ValueMapping vm) { Column[] cols = vm.getColumns(); if (cols.length == 1) cols[0].setJavaType(vm.getDeclaredTypeCode()); }
/** * Set the Java type of the column for the given value. */ private static void setColumnJavaType(ValueMapping vm) { Column[] cols = vm.getColumns(); if (cols.length == 1) cols[0].setJavaType(vm.getDeclaredTypeCode()); }
/** * Set the Java type of the column for the given value. */ private static void setColumnJavaType(ValueMapping vm) { Column[] cols = vm.getColumns(); if (cols.length == 1) cols[0].setJavaType(vm.getDeclaredTypeCode()); }
private FieldMapping getFieldMapping(ClassMapping meta) { FieldMapping[] fields = meta.getFieldMappings(); for (int i = 0; i < fields.length; i++) { ValueMapping val = fields[i].getValueMapping(); if (fields[i].getMappedByMetaData() == field && val.getDeclaredTypeCode() == JavaTypes.MAP) return fields[i]; } return null; } }
private FieldMapping getFieldMapping(ClassMapping meta) { FieldMapping[] fields = meta.getFieldMappings(); for (int i = 0; i < fields.length; i++) { ValueMapping val = fields[i].getValueMapping(); if (fields[i].getMappedByMetaData() == field && val.getDeclaredTypeCode() == JavaTypes.MAP) return fields[i]; } return null; } }
private FieldMapping getFieldMapping(ClassMapping meta) { FieldMapping[] fields = meta.getFieldMappings(); for (int i = 0; i < fields.length; i++) { ValueMapping val = fields[i].getValueMapping(); if (fields[i].getMappedByMetaData() == field && val.getDeclaredTypeCode() == JavaTypes.MAP) return fields[i]; } return null; } }
private FieldMapping getFieldMapping(ClassMapping meta) { FieldMapping[] fields = meta.getFieldMappings(); for (int i = 0; i < fields.length; i++) { ValueMapping val = fields[i].getValueMapping(); if (fields[i].getMappedByMetaData() == field && val.getDeclaredTypeCode() == JavaTypes.MAP) return fields[i]; } return null; } }
/** * The mapping's primary table. */ public Table getTable() { if (_fk != null) return _fk.getTable(); if (_val.getForeignKey() != null) return _val.getForeignKey().getTable(); // if this is a map of bi-directional relation, // the column of this field should be in the table // of the entity that is the value of the map if (_val.getDeclaredTypeCode() == JavaTypes.MAP) { ClassMapping meta = _elem.getDeclaredTypeMapping(); if (meta != null) return meta.getTable(); } ValueMappingImpl vm = (ValueMappingImpl)getDefiningMapping(). getEmbeddingMetaData(); if (vm != null && vm.getValueMappedBy() != null) { return vm.getFieldMapping().getElementMapping(). getDeclaredTypeMapping().getTable(); } return getDefiningMapping().getTable(); }
/** * The mapping's primary table. */ public Table getTable() { if (_fk != null) return _fk.getTable(); if (_val.getForeignKey() != null) return _val.getForeignKey().getTable(); // if this is a map of bi-directional relation, // the column of this field should be in the table // of the entity that is the value of the map if (_val.getDeclaredTypeCode() == JavaTypes.MAP) { ClassMapping meta = _elem.getDeclaredTypeMapping(); if (meta != null) return meta.getTable(); } ValueMappingImpl vm = (ValueMappingImpl)getDefiningMapping(). getEmbeddingMetaData(); if (vm != null && vm.getValueMappedBy() != null) { return vm.getFieldMapping().getElementMapping(). getDeclaredTypeMapping().getTable(); } return getDefiningMapping().getTable(); }
/** * The mapping's primary table. */ public Table getTable() { if (_fk != null) return _fk.getTable(); if (_val.getForeignKey() != null) return _val.getForeignKey().getTable(); // if this is a map of bi-directional relation, // the column of this field should be in the table // of the entity that is the value of the map if (_val.getDeclaredTypeCode() == JavaTypes.MAP) { ClassMapping meta = _elem.getDeclaredTypeMapping(); if (meta != null) return meta.getTable(); } ValueMappingImpl vm = (ValueMappingImpl)getDefiningMapping(). getEmbeddingMetaData(); if (vm != null && vm.getValueMappedBy() != null) { return vm.getFieldMapping().getElementMapping(). getDeclaredTypeMapping().getTable(); } return getDefiningMapping().getTable(); }
/** * The mapping's primary table. */ public Table getTable() { if (_fk != null) return _fk.getTable(); if (_val.getForeignKey() != null) return _val.getForeignKey().getTable(); // if this is a map of bi-directional relation, // the column of this field should be in the table // of the entity that is the value of the map if (_val.getDeclaredTypeCode() == JavaTypes.MAP) { ClassMapping meta = _elem.getDeclaredTypeMapping(); if (meta != null) return meta.getTable(); } ValueMappingImpl vm = (ValueMappingImpl)getDefiningMapping(). getEmbeddingMetaData(); if (vm != null && vm.getValueMappedBy() != null) { return vm.getFieldMapping().getElementMapping(). getDeclaredTypeMapping().getTable(); } return getDefiningMapping().getTable(); }