mirror of https://github.com/apache/openjpa.git
TeamCity commits left two files behind
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9c275904f3
commit
cbde4958f3
|
@ -539,7 +539,9 @@ public class MappingDefaultsImpl
|
||||||
else if (_dsIdName != null)
|
else if (_dsIdName != null)
|
||||||
cols[i].setName(_dsIdName + i);
|
cols[i].setName(_dsIdName + i);
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
}
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -551,9 +553,7 @@ public class MappingDefaultsImpl
|
||||||
String name = col.getName();
|
String name = col.getName();
|
||||||
if (_removeHungarianNotation)
|
if (_removeHungarianNotation)
|
||||||
name = removeHungarianNotation(name);
|
name = removeHungarianNotation(name);
|
||||||
String correctedName = dict.getValidColumnName(name, table);
|
col.setName(dict.getValidColumnName(name, table));
|
||||||
col.setName(correctedName);
|
|
||||||
table.addCorrectedColumnName(correctedName, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -584,7 +584,9 @@ public class MappingDefaultsImpl
|
||||||
} else if (_versName != null)
|
} else if (_versName != null)
|
||||||
cols[i].setName(_versName + i);
|
cols[i].setName(_versName + i);
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
}
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void populateColumns(Discriminator disc, Table table,
|
public void populateColumns(Discriminator disc, Table table,
|
||||||
|
@ -595,7 +597,9 @@ public class MappingDefaultsImpl
|
||||||
else if (_discName != null)
|
else if (_discName != null)
|
||||||
cols[i].setName(_discName + i);
|
cols[i].setName(_discName + i);
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
}
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void populateJoinColumn(ClassMapping cm, Table local, Table foreign,
|
public void populateJoinColumn(ClassMapping cm, Table local, Table foreign,
|
||||||
|
@ -620,8 +624,11 @@ public class MappingDefaultsImpl
|
||||||
|
|
||||||
public void populateColumns(ValueMapping vm, String name, Table table,
|
public void populateColumns(ValueMapping vm, String name, Table table,
|
||||||
Column[] cols) {
|
Column[] cols) {
|
||||||
for (int i = 0; i < cols.length; i++)
|
for (int i = 0; i < cols.length; i++) {
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean populateOrderColumns(FieldMapping fm, Table table,
|
public boolean populateOrderColumns(FieldMapping fm, Table table,
|
||||||
|
@ -632,7 +639,9 @@ public class MappingDefaultsImpl
|
||||||
else if (_orderName != null)
|
else if (_orderName != null)
|
||||||
cols[i].setName(_orderName + i);
|
cols[i].setName(_orderName + i);
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
}
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
return _orderLists && (JavaTypes.ARRAY == fm.getTypeCode()
|
return _orderLists && (JavaTypes.ARRAY == fm.getTypeCode()
|
||||||
|| List.class.isAssignableFrom(fm.getType()));
|
|| List.class.isAssignableFrom(fm.getType()));
|
||||||
}
|
}
|
||||||
|
@ -645,7 +654,9 @@ public class MappingDefaultsImpl
|
||||||
else if (_nullIndName != null)
|
else if (_nullIndName != null)
|
||||||
cols[i].setName(_nullIndName + i);
|
cols[i].setName(_nullIndName + i);
|
||||||
correctName(table, cols[i]);
|
correctName(table, cols[i]);
|
||||||
|
table.addSubColumn(cols[i].getName());
|
||||||
}
|
}
|
||||||
|
table.resetSubColumns();
|
||||||
return _addNullInd;
|
return _addNullInd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ public class SchemaGroup
|
||||||
tab.importIndex(idxs[j]);
|
tab.importIndex(idxs[j]);
|
||||||
unqs = tables[i].getUniques();
|
unqs = tables[i].getUniques();
|
||||||
for (int j = 0; j < unqs.length; j++)
|
for (int j = 0; j < unqs.length; j++)
|
||||||
tab.importUnique(unqs[j], null);
|
tab.importUnique(unqs[j]);
|
||||||
}
|
}
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue