if(key==null) {
log.warn("The JDBC driver didn't report any primary key columns in " + table.getName() + ". Asking rev.eng. strategy" );
List userPrimaryKey = revengStrategy.getPrimaryKeyColumnNames(TableIdentifier.create(table));
if(userPrimaryKey!=null && !userPrimaryKey.isEmpty()) {
key = new PrimaryKey();
key.setName(new Alias(15, "PK").toAliasString( table.getName()));
key.setTable(table);
if(table.getPrimaryKey()!=null) {
throw new JDBCBinderException(table + " already has a primary key!"); //TODO: ignore ?
}
table.setPrimaryKey(key);