File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
hibernate-core/src/main/java/org/hibernate/dialect Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 35
35
import org .hibernate .exception .spi .ViolatedConstraintNameExtractor ;
36
36
import org .hibernate .metamodel .mapping .EntityMappingType ;
37
37
import org .hibernate .metamodel .spi .RuntimeModelCreationContext ;
38
+ import org .hibernate .persister .entity .mutation .EntityMutationTarget ;
38
39
import org .hibernate .query .sqm .CastType ;
39
40
import org .hibernate .query .sqm .IntervalType ;
40
41
import org .hibernate .query .common .TemporalUnit ;
51
52
import org .hibernate .sql .ast .spi .StandardSqlAstTranslatorFactory ;
52
53
import org .hibernate .sql .ast .tree .Statement ;
53
54
import org .hibernate .sql .exec .spi .JdbcOperation ;
55
+ import org .hibernate .sql .model .MutationOperation ;
56
+ import org .hibernate .sql .model .internal .OptionalTableUpdate ;
54
57
import org .hibernate .tool .schema .extract .internal .SequenceInformationExtractorHSQLDBDatabaseImpl ;
55
58
import org .hibernate .tool .schema .extract .spi .SequenceInformationExtractor ;
56
59
import org .hibernate .type .spi .TypeConfiguration ;
@@ -782,4 +785,13 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
782
785
return false ;
783
786
}
784
787
788
+ @ Override
789
+ public MutationOperation createOptionalTableUpdateOperation (
790
+ EntityMutationTarget mutationTarget ,
791
+ OptionalTableUpdate optionalTableUpdate ,
792
+ SessionFactoryImplementor factory ) {
793
+ return new HSQLSqlAstTranslator <>( factory , optionalTableUpdate )
794
+ .createMergeOperation ( optionalTableUpdate );
795
+ }
796
+
785
797
}
Original file line number Diff line number Diff line change 13
13
import org .hibernate .query .sqm .ComparisonOperator ;
14
14
import org .hibernate .sql .ast .Clause ;
15
15
import org .hibernate .sql .ast .SqlAstNodeRenderingMode ;
16
- import org .hibernate .sql .ast .spi .AbstractSqlAstTranslator ;
16
+ import org .hibernate .sql .ast .spi .SqlAstTranslatorWithMerge ;
17
17
import org .hibernate .sql .ast .spi .SqlSelection ;
18
18
import org .hibernate .sql .ast .tree .Statement ;
19
19
import org .hibernate .sql .ast .tree .expression .CaseSearchedExpression ;
40
40
*
41
41
* @author Christian Beikov
42
42
*/
43
- public class HSQLSqlAstTranslator <T extends JdbcOperation > extends AbstractSqlAstTranslator <T > {
43
+ public class HSQLSqlAstTranslator <T extends JdbcOperation > extends SqlAstTranslatorWithMerge <T > {
44
44
45
45
public HSQLSqlAstTranslator (SessionFactoryImplementor sessionFactory , Statement statement ) {
46
46
super ( sessionFactory , statement );
You can’t perform that action at this time.
0 commit comments