Commit Graph

843 Commits

Author SHA1 Message Date
Jens Schauder
baee76a46d Make Oracle tests work with Testcontainers 1.16.2.
The new Testcontainers version comes with a standard Oracle image configured and doesn't work with the one we used so far.
Making the standard image work required some tweaks to the setup so that the test user has the required privileges.

Closes #1081
2021-11-05 09:20:16 +01:00
Mark Paluch
b1b5fe90da Polishing.
Remove unecessary toString calls. Make Cast.create public to align with other factory methods. Fix AbstractSegment.toString

See #1066
Original pull request: #1071.
2021-10-25 14:19:41 +02:00
Jens Schauder
cf39fa2cfb Adds a CAST expression to the SQL DSL.
Example: Expressions.cast(table_user.column("name"),"VARCHAR2")

Also adds a toString to AbstractSegment to avoid stack overflows.

Closes #1066
Original pull request: #1071.
2021-10-25 14:19:41 +02:00
Mark Paluch
b2c45094fb After release cleanups.
See #1052
2021-10-18 13:55:41 +02:00
Mark Paluch
546d7dccda Prepare next development iteration.
See #1052
2021-10-18 13:55:38 +02:00
Mark Paluch
a8fc77b14c Release version 2.3 RC1 (2021.1.0).
See #1052
2021-10-18 13:48:13 +02:00
Mark Paluch
bf4944b38f Prepare 2.3 RC1 (2021.1.0).
See #1052
2021-10-18 13:47:46 +02:00
Peter Luladjiev
101b3c8d47 Fix typo in Query Methods documentation.
Closes #1064
2021-10-13 14:18:16 +02:00
Mark Paluch
c372eb8fe2 Upgrade to Maven Wrapper 3.8.3.
See #1067
2021-10-11 14:30:22 +02:00
Mark Paluch
4be6bc21ad Polishing.
Reduce test element visibility according to JUnit 5 requirements.

See #1061
2021-10-06 09:07:17 +02:00
Mark Paluch
09596ce1eb Log a warning when a query method is annotated with a query and a query name.
We now log when a query method has an ambiguous declaration to clarify that the declared query is used.

Closes #1061.
2021-10-06 09:07:16 +02:00
Mark Paluch
bc866e3a06 Polishing.
Add missing deprecation annotation. Fix since tags.

See #1053
Original pull request: #1060.
2021-10-01 10:34:10 +02:00
Jens Schauder
3cd25ee01f Introducing AfterConvertCallback/Event.
This is to replace the AfterLoadCallback/Event in order to match the naming of other store modules.

AfterLoadCallback/Event is still in place for now, but deprecated.

Closes #1053
Original pull request: #1060.
2021-10-01 10:33:59 +02:00
Mark Paluch
b02ee3c083 Polishing.
Encapsulate array support in JdbcArrayColumns.

See #1033
Original pull request: #1037.
2021-09-30 14:35:41 +02:00
Jens Schauder
933b2f125d Add the appropriate SQL type representation for floats in Postgres arrays.
Note that there is a separate problem with loading arrays of floats.

Original pull request #1037
See #1046
2021-09-30 14:35:34 +02:00
Jens Schauder
bc0d307415 SQL type used in array construction depends on Dialect.
Postgres requires the non standard type "FLOAT8" for "DOUBLE".
This is accomplished by making the conversion dependent on the dialect.

This required a new JdbcDialect interface in order to keep the JDBC annotation out of the relational module.

Closes #1033
Original pull request: #1037.
2021-09-30 14:35:03 +02:00
Mark Paluch
b5b143448b Refine CI triggers.
See #1054
2021-09-29 14:11:25 +02:00
Mark Paluch
22e57fdffc Polishing.
See #1022
Original pull request: #1039.
2021-09-28 15:53:20 +02:00
Jens Schauder
cc6859b8b8 Fixes annotated named queries.
@Query.name wasn't considered when trying to find a named query for a query method.

Closes #1022
Original pull request: #1039.
2021-09-28 15:53:10 +02:00
Mark Paluch
660a44e888 Polishing.
See #1009
Original pull request: #1015.
2021-09-28 15:08:24 +02:00
Jens Schauder
520134dc73 Conditions with SimpleExpressions get properly rendered.
This commit contains just a test to verify this.
The actual fix happened as part of #1018.

Closes #1009.
Original pull request #1015
See #1018
2021-09-28 15:08:24 +02:00
Mark Paluch
9844f40580 Polishing.
Reformat code. Add since tag.

See #995
Original pull request: #1014.
2021-09-28 14:56:02 +02:00
Jens Schauder
82c70ab99f Allow for arbitrary conditions as join condition.
Closes #995.
Original pull request: #1014.
2021-09-28 14:55:36 +02:00
Mark Paluch
d47020d868 Polishing.
Reformat code. Remove duplicate, lingering Javadoc. Add override annotations. Use entities instead of < and >. Reduce method/class visibility in tests.

See #1003
Original pull request: #1018.
2021-09-28 10:50:51 +02:00
Jens Schauder
f6eacf327c Support for in line queries for tables.
`InlineQuery` can be used wherever a `Table` was used up to now.

```
Table one = ...;
Select select = Select.builder()
		.select(one.column("id"), employee.column("name"))
		.from(one)
		.build();

InlineQuery inline = InlineQuery.create(select, "inline");
Select select = Select.builder()
		.select(inline.column("id"), inline.column("name"))
		.from(inline)
		.build();
```

Join and From renderer now use the same FromTableVisitor.
Also the SelectListVisitor reuses now the ExpressionVisitor.

Fixes #1003
Original pull request: #1018.
2021-09-28 10:50:51 +02:00
Jens Schauder
0d03b5928b Add Java 17 verification to CI pipeline.
Closes #1054
2021-09-22 09:35:42 +02:00
Mark Paluch
429eb5b8e9 After release cleanups.
See #1026
2021-09-17 09:52:21 +02:00
Mark Paluch
562561b93c Prepare next development iteration.
See #1026
2021-09-17 09:52:18 +02:00
Mark Paluch
a0cdb079d5 Release version 2.3 M3 (2021.1.0).
See #1026
2021-09-17 09:44:56 +02:00
Mark Paluch
fcbce58f9a Prepare 2.3 M3 (2021.1.0).
See #1026
2021-09-17 09:44:34 +02:00
Mark Paluch
6824f85fda Upgrade to Maven Wrapper 3.8.2.
See #1044
2021-09-10 15:37:56 +02:00
Jens Schauder
c7b629a5b0 Deprecate defunct SimpleCondition.
SimpleCondition was defunct and is now deprecated.
An equivalent convenience function is added to Comparison.

Closes #1034
2021-08-26 13:28:28 +02:00
Andrei Bocan
aa51d637fb Fix typo in Query Methods documentation.
Original pull request #1030
2021-08-25 14:31:31 +02:00
Christoph Strobl
d5e54b2036 Change visibility of JdbcRepositoryFactoryBean setters.
Setters of the FactoryBean are now public.

Closes #1031
2021-08-24 14:09:49 +02:00
Jens Schauder
04e889d8be After release cleanups.
See #1012
2021-08-12 15:16:23 +02:00
Jens Schauder
aa1e3b44b1 Prepare next development iteration.
See #1012
2021-08-12 15:16:21 +02:00
Jens Schauder
4b6ed3b17c Release version 2.3 M2 (2021.1.0).
See #1012
2021-08-12 15:03:17 +02:00
Jens Schauder
7dcab94cf7 Prepare 2.3 M2 (2021.1.0).
See #1012
2021-08-12 15:02:55 +02:00
Mark Paluch
f997a611d8 Polishing.
Remove Jackson in favor of JsonHolder and PGobject usage within the domain model. Convert spaces to tabs. Reorder methods and classes.

See #920
Original pull request: #1008.
2021-07-20 16:09:47 +02:00
Nikita Konev
d1e8e722c1 Consider PGobject as simple type.
Closes #920
Original pull request: #1008.
2021-07-20 16:09:38 +02:00
Jens Schauder
29d4f1ebde After release cleanups.
See #967
2021-07-16 14:19:57 +02:00
Jens Schauder
b0996802d3 Prepare next development iteration.
See #967
2021-07-16 14:19:55 +02:00
Jens Schauder
5ed1a4a6d1 Release version 2.3 M1 (2021.1.0).
See #967
2021-07-16 14:09:25 +02:00
Jens Schauder
abefeb83ed Prepare 2.3 M1 (2021.1.0).
See #967
2021-07-16 14:08:58 +02:00
Jens Schauder
d39edb831c Updated changelog.
See #967
2021-07-16 14:08:33 +02:00
Jens Schauder
283fad3016 Updated changelog.
See #990
2021-07-16 10:48:16 +02:00
Mark Paluch
7d67f30bbd Polishing.
Tweak method names. Rebase onto main. Convert issue references to GH- from hash prefixed ones. Remove final keyword from variable and parameter declarations.

Original pull request: #999.
See #987
2021-07-15 12:04:53 +02:00
Jens Schauder
11734c1bcc Support AggregateReference in query derivation.
For a property of type AggregateReference one may provide an aggregate, an AggregateReference, or the id of the aggregate.

Closes #987
Original pull request: #999.
2021-07-15 12:04:53 +02:00
Mark Paluch
4f4014dc8e Polishing.
Hide actual converters by making these private classes, expose factory method to construct converters. Avoid stream API usage on converter code paths. Remove unused imports. Clean up tests.

Original pull request: #993.
See #992
2021-07-15 11:49:16 +02:00
Jens Schauder
221d11324f Convert AggregateReference by converters instead of custom code paths.
Closes #992
Original pull request #993
2021-07-15 11:49:07 +02:00