Add the primary key on columns, not fields.

This commit is contained in:
Par Winzell
2007-08-15 22:18:54 +00:00
parent d414292ac3
commit cf8a977778
@@ -678,7 +678,8 @@ public class DepotMarshaller<T extends PersistentRecord>
log.info("Adding primary key.");
ctx.invoke(new Modifier() {
public int invoke (Connection conn, DatabaseLiaison liaison) throws SQLException {
liaison.addPrimaryKey(conn, getTableName(), getPrimaryKeyFields());
liaison.addPrimaryKey(
conn, getTableName(), fieldsToColumns(getPrimaryKeyFields()));
return 0;
}
});