note down an important TODO for later
This commit is contained in:
parent
0f4cdc3bdb
commit
250995336b
|
@ -66,6 +66,10 @@ public class H2SqlAstTranslator<T extends JdbcOperation> extends AbstractSqlAstT
|
|||
assert tableInsert.getReturningColumns() != null
|
||||
&& !tableInsert.getReturningColumns().isEmpty();
|
||||
|
||||
//TODO: This is a terrible way to solve this problem, please fix it!
|
||||
// Not every "returning insert" statement has something to do
|
||||
// with identity columns! (Nor is it an elegant implementation.)
|
||||
|
||||
final H2IdentityColumnSupport identitySupport = (H2IdentityColumnSupport) getSessionFactory()
|
||||
.getJdbcServices()
|
||||
.getDialect()
|
||||
|
|
|
@ -34,6 +34,7 @@ public class H2FinalTableIdentityColumnSupport extends H2IdentityColumnSupport {
|
|||
return "select " + identityColumnName + " from final table ( " + insertString + " )";
|
||||
}
|
||||
|
||||
@Deprecated //TODO: move this logic back to H2SqlAstTranslator
|
||||
public void render(
|
||||
TableInsert tableInsert,
|
||||
Consumer<String> sqlAppender,
|
||||
|
|
|
@ -48,6 +48,7 @@ public class H2IdentityColumnSupport extends IdentityColumnSupportImpl {
|
|||
void renderInsertValues();
|
||||
}
|
||||
|
||||
@Deprecated //TODO: get rid of this layer-breaking method!
|
||||
public void render(
|
||||
TableInsert tableInsert,
|
||||
Consumer<String> sqlAppender,
|
||||
|
|
Loading…
Reference in New Issue