Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,8 +20,8 @@ import java.sql.DatabaseMetaData;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* The HSQL specific implementation of the {@link TableMetaDataProvider}. Suports a feature for
|
||||
* retreiving generated keys without the JDBC 3.0 getGeneratedKeys support.
|
||||
* The HSQL specific implementation of the {@link TableMetaDataProvider}.
|
||||
* Supports a feature for retreiving generated keys without the JDBC 3.0 getGeneratedKeys support.
|
||||
*
|
||||
* @author Thomas Risberg
|
||||
* @since 2.5
|
||||
@@ -32,15 +32,14 @@ public class HsqlTableMetaDataProvider extends GenericTableMetaDataProvider {
|
||||
super(databaseMetaData);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isGetGeneratedKeysSimulated() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName) {
|
||||
return "select max(identity()) from " + tableName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user