Commit Graph

2312 Commits

Author SHA1 Message Date
Timo Westkämper
8321eeab36 Querydsl 4.2.1 2018-03-20 19:04:55 +02:00
Timo Westkämper
5f67540035 Add missing casts 2018-03-18 21:45:49 +02:00
Timo Westkämper
e709bf6334
Merge pull request #2269 from querydsl/querydsl-4.2.0
Querydsl 4.2.0
2018-03-17 19:03:36 +02:00
Ruben Dijkstra
62d0ad4d76
Merge pull request #2241 from reegnz/fix-throws-javadoc
Explicitly declare NonUniqueResultException for fetchOne
2018-03-14 13:50:41 +01:00
Timo Westkämper
964d6ce769 Querydsl 4.2.0 2018-03-13 18:54:25 +02:00
Timo Westkämper
ad14e400ac
Merge pull request #2263 from querydsl/improvement/sql-backwards-compat
Improve backwards compatibility
2018-03-13 18:53:19 +02:00
Timo Westkämper
0c3cb1323e Improve backwards compatibility 2018-03-06 22:15:26 +02:00
Timo Westkämper
721af2b801
Revert "Querydsl 4.2.0" 2018-03-04 22:17:43 +02:00
Timo Westkämper
f732b3ed92 Querydsl 4.2.0 2018-03-04 21:57:19 +02:00
Timo Westkämper
fe956ad812
Merge pull request #2236 from querydsl/i2225
Update oracle keywords list
2018-03-04 21:56:33 +02:00
Timo Westkämper
c46afd6433
Merge pull request #2253 from rdnetto4/update_from
Expose fields needed for dialect-specific SQL syntax
2018-03-04 21:56:02 +02:00
Ruben Dijkstra
2468042ed7
Merge pull request #2016 from balazs-zsoldos/i2007_Programmatic_Name_Mapping
Adding dynamic name mapping functionality (#2007)
2018-02-25 12:33:57 +01:00
Balazs Zsoldos
a996862c59 Changing years in license headers of new files of #i2007 2018-02-25 11:00:52 +01:00
Reuben D'Netto
669cd57e85 Fix imports 2018-02-12 13:15:57 +11:00
Reuben D'Netto
2b746f75ee Refactored AbstractSQLQuery subtypes to support generic return types, to facilitate subtyping. 2018-02-12 11:40:26 +11:00
Reuben D'Netto
ad35e9d946 Factored out base class for SQLInsertClause, SQLUpdateClause, SQLDeleteClause 2018-02-09 15:42:32 +11:00
Reuben D'Netto
280a8945a4 Loosened visibility on SQLSerializer 2018-02-09 15:42:32 +11:00
Reuben D'Netto
dd95ac3ced Loosened visibility on AbstractSQLClause subtypes 2018-02-09 15:42:32 +11:00
Yuri Orlov
b7759422ac simplify array creation 2018-02-08 17:29:21 +03:00
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
Timo Westkämper
0c8b61db8c
Merge pull request #2234 from querydsl/oracle-travis
Dockerize oracle, mysql, postgres, cubrid, firebird, db2, and mongo
2018-01-12 20:26:43 +02:00
Ruben Dijkstra
eb3c220b72
Merge pull request #2104 from atlassian/i2098
Explicitly sets a timezone for querydsl-sql tests.
2018-01-09 20:11:11 +01:00
Ruben Dijkstra
5f8490adc2 Update oracle keywords list 2018-01-04 18:45:49 +01: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
Balázs Zsoldos
a3c2050928 Removing unnecessary empty line in ConfigurationTest
Forcing Travis to re-execute
2017-07-03 08:01:23 +02:00
Balazs Zsoldos
69961c35d0 Replacing Locale.getDefeault() in tests to English 2017-06-29 21:26:54 +02:00
Balazs Zsoldos
249f0c6678 Merge remote-tracking branch 'querydsl/master' into i2007_Programmatic_Name_Mapping 2017-06-29 21:17:46 +02:00
Kara Hatherly
a8fa6be970 Explicitly sets a timezone for querydsl-sql tests.
Fixes #2098
2017-03-06 17:03:00 +11: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
Balazs Zsoldos
5dfad907f9 Fixing checkstyle errors 2016-11-06 02:22:33 +01:00
Balazs Zsoldos
d7fbe13ed4 Making register* functions deprecated in Configuration 2016-11-06 02:15:13 +01:00
Balazs Zsoldos
2b90b257c6 100% unit test coverage on namemapping package 2016-11-06 02:14:49 +01:00
Balazs Zsoldos
f688ace375 Merge remote-tracking branch 'querydsl/master' into i2007_Programmatic_Name_Mapping 2016-11-06 00:54:05 +01:00
Balazs Zsoldos
0df942e562 Fixing letter case changing in ChangeLetterCaseNameMapping 2016-10-08 12:04:52 +02:00
Balazs Zsoldos
227d4ec451 Making NameMapping test passing the turkey test 2016-10-08 11:57:04 +02:00
Balazs Zsoldos
9337a2c5c5 Renaming ChangeCaseNameMapping to ChangeLetterCaseNameMapping 2016-10-07 00:28:52 +02:00
Balazs Zsoldos
4b21a814d9 Using locales for letter-case changing in name mapping. 2016-10-07 00:25:50 +02:00
Balázs Zsoldos
9580cd3997 Fixing setDynamicNameMapping 2016-10-07 00:12:44 +02:00