Commit Graph

1748 Commits

Author SHA1 Message Date
Zoltán Reegn
3a74aaeabc Explicitly declare NonUniqueResultException for fetchOne
Fetchable.fetchOne() declares in it's javadoc that it throws
NonUniqueResultException. It should therefore be explicitly declared in
the method signature as well.
All implementations must also declare in their signature that they throw.

This also has the desirable side-effect of the javadoc of all of the
implementors inheriting the @throws section from the javadoc of the
interface as well.

Fixes #2232
2018-01-16 14:03:05 +01:00
Timo Westkämper
215a56b627
Merge pull request #2211 from lpandzic/sql-server-2016-support
added SQL Server 2016 support to SQLTemplatesRegistry
2018-01-12 20:31:23 +02:00
Timo Westkämper
a8452ec2cb
Merge pull request #2172 from tpuica/master
Fixed NEXTVAL Operator for MS SQLServer (starting with 2012)
2018-01-12 20:29:44 +02:00
Timo Westkämper
17fd2c073c
Merge pull request #2093 from atlassian/i1839
Adds methods to SQLListenerContext to retrieve SQLBindings.
2018-01-12 20:28:34 +02:00
Timo Westkämper
74ccec396f
Merge pull request #2103 from gordski/dml-with-schema
Store original state of dmlWithSchema
2018-01-12 20:27:33 +02:00
John Tims
0f86f68619 Dockerize oracle, mysql, postgres, cubrid, firebird, db2, and mongo 2017-12-29 15:39:42 -07:00
lpandzic
51e471432e added SQL Server 2016 support to SQLTemplatesRegistry 2017-10-10 15:33:19 +02:00
tpuica
125388987e fix Travis CI build (line has trailing spaces?) 2017-07-25 17:31:40 +02:00
tpuica
26158ddac6 adapt nextVal() test to the recently modified NEXTVAL operator pattern 2017-07-25 17:13:52 +02:00
tpuica
f958a95d7f Fixed NEXTVAL Operator for MS SQLServer (starting with 2012) 2017-07-25 11:20:20 +02:00
Kara Hatherly
68d6f37537 Made SQLBindings null-friendly, deprecated null-hostile constructor and getBindings 2017-02-21 15:00:36 +11:00
Kara Hatherly
3b876d14a7 Adds methods to SQLListenerContext to retrieve SQLBindings.
This was added as an alternative to just getting an SQL string. Internally,
SQLListenerContextImpl now only takes SQLBindings and the getSQL and
getSQLStatements methods delegate to SQLBindings#getSQL. This required
shuffling around AbstractSQLQuery and SQL*Clause to create bindings sooner to
pass through to addSQL even though we derive the same data later on inside
AbstractSQLClause#setParameters - I figured this was preferable to larger-scale
refactoring.

Fixes #1839
2017-02-09 10:05:05 +11:00
Gordon Innes
06ac2989f5 Store original state of dmlWithSchema as discussed in #2075. 2017-01-11 23:29:42 +00:00
Gordon Innes
1b4ef3f5b6 Tests for requiresSchemaInWhere option in SQLTemplates. 2017-01-11 23:28:29 +00:00
Gordon Innes
73bc267549 Added requiresSchemaInWhere option to SQLTemplates.
This option allows templates to generate where clauses with the pattern
<SCHEMA>.<TABLE>.<COLUMN> in the column specs.

Derby doesn't appear to support <TABLE>.<COLUMN> when using
<SCHEMA>.<TABLE> in the from unless the default schema is set and matches
the <SCHEMA> in the from clause.
2017-01-11 22:26:26 +00:00
Timo Westkämper
63f25d60b1 Merge pull request #1988 from querydsl/i1978
Fix serialization
2016-08-30 18:20:48 +03:00
Robert Csakany
6aad783de4 #1961 HSQLDB dont use parenthes in Union. 2016-08-06 12:27:04 +02:00
Timo Westkämper
4e94a89080 Fix serialization 2016-08-06 10:56:49 +03:00
Timo Westkämper
fc8b5da0fb Merge pull request #1935 from querydsl/i1933
Use default locale instead of ENGLISH
2016-06-30 21:59:27 +03:00
Timo Westkämper
9389d37b1c Merge pull request #1940 from tan31989/i1936
Join for dynamic entity path alias, querydsl-sql needs implementation
2016-06-30 21:49:49 +03:00
Timo Westkämper
d91b5d9159 Use default locale instead of ENGLISH 2016-06-30 21:22:32 +03:00
Timo Westkämper
9d7aa86548 Merge pull request #1937 from querydsl/i1932
Make cross join overridable
2016-06-30 21:19:45 +03:00
Timo Westkämper
1b970c05d8 Merge pull request #1926 from querydsl/i1921
Fix end position handling
2016-06-30 21:18:08 +03:00
Timo Westkämper
f7dec5b73d Merge pull request #1930 from querydsl/i1929
Fix template handling
2016-06-30 19:43:25 +03:00
Timo Westkämper
2281271d7d Make cross join overridable 2016-06-30 19:26:49 +03:00
nagarajt
478dde3b1a Added some test cases and also updated the incorrect java docs 2016-06-30 11:04:27 +05:30
nagarajt
82740e944b Updated the method docs 2016-06-29 17:14:36 +05:30
nagarajt
7bc1e3e582 Join for dynamic entity path alias, querydsl-sql needs implementation for EntityPath and alias 2016-06-29 11:40:25 +05:30
Timo Westkämper
2a34ed63b3 Add test 2016-06-24 11:02:06 +03:00
Timo Westkämper
e6eba39ea2 Add set support 2016-06-20 00:41:14 +03:00
Robert Bain
24ab7eb036 Issue 1898: Coalesce using UNION keyword instead of a comma 2016-06-20 00:41:05 +03:00
Timo Westkämper
fbd75c840e Fix end position handling 2016-06-17 22:37:17 +03:00
Timo Westkämper
3e60855a1a Merge pull request #1819 from querydsl/i1817
Extend ON DUPLICATE KEY UPDATE support
2016-05-31 20:51:32 +03:00
Timo Westkämper
a77ae8183e Add assignment support 2016-05-30 22:20:13 +03:00
Ruben Dijkstra
f2045a21a6 Add support for Oracle's bulk insert syntax 2016-05-29 20:55:31 +02:00
Timo Westkämper
0e65a1b4be Add option for batch to bulk support 2016-05-28 22:19:30 +03:00
Timo Westkämper
76c80a7f00 Add support for bulk insert 2016-05-26 22:45:21 +03:00
Timo Westkämper
06ae6a943b Merge pull request #1852 from querydsl/i1848
Extend orderBy signature
2016-05-15 23:06:25 +03:00
Timo Westkämper
3f7af7f69a Add test 2016-05-15 21:24:55 +03:00
Timo Westkämper
e4059082bb Merge pull request #1840 from querydsl/i1781-2
Improve null handling
2016-05-15 21:15:05 +03:00
Timo Westkämper
ae5917185a Merge pull request #1862 from querydsl/i1861
Improve aliasing
2016-05-15 21:14:14 +03:00
Ruben Dijkstra
dd8c0d6c9b Add casts to DateTimeOps in PostgreSQLTemplates 2016-05-11 21:05:39 +02:00
Ruben Dijkstra
f75cf3e7f4 Add failing test 2016-05-11 21:03:34 +02:00
Timo Westkämper
902549222f Improve aliasing 2016-05-10 21:17:44 +03:00
Timo Westkämper
bdad1eaed2 Extend orderBy signature 2016-04-17 20:09:37 +03:00
Timo Westkämper
a6d14a2602 Improve null handling 2016-04-06 19:40:43 +03:00
Timo Westkämper
a2cd19e9c9 Merge pull request #1805 from querydsl/in-signature
Improve SimpleExpression.in(...) signature
2016-04-01 18:06:43 +03:00
Timo Westkämper
c1377f699e Merge pull request #1835 from querydsl/i1834
Improve limit/offset handling
2016-04-01 18:06:31 +03:00
Timo Westkämper
3fd6e0e36b Merge pull request #1816 from querydsl/i1814
Fix precedence mappings
2016-03-31 18:55:47 +03:00
Timo Westkämper
4787895949 Improve limit/offset handling 2016-03-31 18:49:48 +03:00