mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
note down an important TODO for later
This commit is contained in:
parent
0f4cdc3bdb
commit
250995336b
@ -66,6 +66,10 @@ public void visitReturningInsertStatement(TableInsertStandard tableInsert) {
|
||||
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 String appendIdentitySelectToInsert(String identityColumnName, String ins
|
||||
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 interface InsertValuesHandler {
|
||||
void renderInsertValues();
|
||||
}
|
||||
|
||||
@Deprecated //TODO: get rid of this layer-breaking method!
|
||||
public void render(
|
||||
TableInsert tableInsert,
|
||||
Consumer<String> sqlAppender,
|
||||
|
Loading…
x
Reference in New Issue
Block a user