mirror of
https://github.com/apache/openjpa.git
synced 2025-02-22 01:55:29 +00:00
OPENJPA-395. Use getShort instead of getInt for the KEY_SEQ, DEFFERABILITY, and DELETE_RULE metadata fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@582838 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c1b918371
commit
fe50bbe648
@ -3621,11 +3621,11 @@ public class DBDictionary
|
||||
fk.setPrimaryKeySchemaName(fkMeta.getString("PKTABLE_SCHEM"));
|
||||
fk.setPrimaryKeyTableName(fkMeta.getString("PKTABLE_NAME"));
|
||||
fk.setPrimaryKeyColumnName(fkMeta.getString("PKCOLUMN_NAME"));
|
||||
fk.setKeySequence(fkMeta.getInt("KEY_SEQ"));
|
||||
fk.setDeferred(fkMeta.getInt("DEFERRABILITY")
|
||||
fk.setKeySequence(fkMeta.getShort("KEY_SEQ"));
|
||||
fk.setDeferred(fkMeta.getShort("DEFERRABILITY")
|
||||
== DatabaseMetaData.importedKeyInitiallyDeferred);
|
||||
|
||||
int del = fkMeta.getInt("DELETE_RULE");
|
||||
int del = fkMeta.getShort("DELETE_RULE");
|
||||
switch (del) {
|
||||
case DatabaseMetaData.importedKeySetNull:
|
||||
fk.setDeleteAction(ForeignKey.ACTION_NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user