if (primaryKeyColumn.length<1)
return null; //ID is the default pk
return primaryKeyColumn[0];
}
public static String getPrimaryKey (Table table) {
Column primaryKeyColumn=getPrimaryFirstColumn(table);
if (primaryKeyColumn!=null)
return primaryKeyColumn.getName();
// check if there is a virtual primary key
// String virtualPrimaryKey = getVirtualPrimaryKey(table);
// if (virtualPrimaryKey!=null) {
// return virtualPrimaryKey;
// }