mirror of https://github.com/apache/openjpa.git
OPENJPA-2855 revert PK name handling
Seems this got broken as side effect of dd9bce0cc9
which was for OPENJPA-2816. We need to check HerdDB again
This commit is contained in:
parent
a3bf818402
commit
2a3fc73861
|
@ -24,7 +24,6 @@ import java.sql.Types;
|
|||
|
||||
import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
|
||||
import org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl;
|
||||
import org.apache.openjpa.jdbc.identifier.DBIdentifier;
|
||||
import org.apache.openjpa.jdbc.meta.ClassMapping;
|
||||
import org.apache.openjpa.jdbc.meta.MappingRepository;
|
||||
import org.apache.openjpa.jdbc.schema.Column;
|
||||
|
@ -79,9 +78,7 @@ public class ValueTableJDBCSeq
|
|||
@Override
|
||||
protected Column addPrimaryKeyColumn(Table table) {
|
||||
DBDictionary dict = getConfiguration().getDBDictionaryInstance();
|
||||
DBIdentifier delimitedColumnName = dict.fromDBName(getPrimaryKeyColumn(), DBIdentifier.DBIdentifierType.COLUMN);
|
||||
Column pkColumn = table.addColumn(dict.getValidColumnName
|
||||
(delimitedColumnName, table));
|
||||
Column pkColumn = table.addColumn(dict.getValidColumnName(getPrimaryKeyColumnIdentifier(), table));
|
||||
pkColumn.setType(dict.getPreferredType(Types.VARCHAR));
|
||||
pkColumn.setJavaType(JavaTypes.STRING);
|
||||
pkColumn.setSize(dict.characterColumnSize);
|
||||
|
|
Loading…
Reference in New Issue