367 Commits

Author SHA1 Message Date
Mark Paluch
71fd13cccf Adopt to Mockito 5.1 changes.
See #1424
2023-03-30 11:28:15 +02:00
Mark Paluch
e0b1b9b7a0 Prepare next development iteration.
See #1358
2022-11-18 10:35:08 +01:00
Mark Paluch
a2b0b0dc36 Release version 2.3.10 (2021.1.10).
See #1358
2022-11-18 10:22:09 +01:00
Dmitriy
ea26b536ff Add Transactional annotation to deleteAllById.
Original pull request #1370
2022-11-15 16:51:46 +01:00
Spring Builds
f6616b9276 Prepare next development iteration.
See #1357
2022-10-13 12:36:50 +00:00
Spring Builds
6f7ed3de97 Release version 2.3.9 (2021.1.9).
See #1357
2022-10-13 11:54:12 +00:00
Spring Builds
21716a5ae2 Prepare next development iteration.
See #1332
2022-10-13 07:51:49 +00:00
Spring Builds
c56826125e Release version 2.3.8 (2021.1.8).
See #1332
2022-10-13 07:28:17 +00:00
Spring Builds
d63b0b97e3 Prepare next development iteration.
See #1293
2022-09-19 09:04:38 +00:00
Spring Builds
11ce3e087c Release version 2.3.7 (2021.1.7).
See #1293
2022-09-19 08:40:16 +00:00
Christoph Strobl
aed5b36f9f Prepare next development iteration.
See #1262
2022-07-15 10:47:31 +02:00
Christoph Strobl
2b487537f2 Release version 2.3.6 (2021.1.6).
See #1262
2022-07-15 10:34:16 +02:00
Mark Paluch
f8dcfafd34 Prepare next development iteration.
See #1223
2022-06-20 11:12:19 +02:00
Mark Paluch
ffa214fe24 Release version 2.3.5 (2021.1.5).
See #1223
2022-06-20 10:59:10 +02:00
Jens Schauder
a57e764fcb Polishing.
Original pull request #1226
See #1212
2022-05-17 16:07:39 +02:00
Jens Schauder
5c4d14be6b fix 2022-05-17 16:07:38 +02:00
Chirag Tailor
f97434de20 Update @Query argument conversion to handle Collection<Enum>.
+ Copy logic from QueryMapper#convertToJdbcValue to resolve Iterable
  arguments on findBy* query methods to resolve the same for @Query.
+ Use parameter ResolvableType instead of Class to retain generics info.

Original pull request #1226
Closes #1212
2022-05-17 15:26:43 +02:00
Christoph Strobl
a26aef0f4e Prepare next development iteration.
See #1203
2022-04-19 12:13:20 +02:00
Christoph Strobl
e911c68ddb Release version 2.3.4 (2021.1.4).
See #1203
2022-04-19 12:03:13 +02:00
Jens Schauder
46a5eb6d76 Polishing.
Changed default behaviour to an empty name for embedded entities.
This allows to use embedded entities for column tuples without special prefix.

Original pull request #1149
2022-03-23 15:58:15 +01:00
Daniil Razorenov
53c9709106 Fix assemble table alias for embedded entity with empty prefix and reference.
Table alias for embedded entity use prefix value from Embedded annotation. But default value for prefix is empty string. If try to create SqlIdentifier for empty string it throw exception. To avoid this behavior, if prefix is an empty string, property name for embedded entity is taken instead.
2022-03-23 15:58:14 +01:00
Mark Paluch
b690156379 Prepare next development iteration.
See #1175
2022-03-21 15:06:35 +01:00
Mark Paluch
026952dbbd Release version 2.3.3 (2021.1.3).
See #1175
2022-03-21 14:58:52 +01:00
Jens Schauder
463d9c37e0 Avoid conversion when return value is null.
Closes #1167
2022-03-03 14:55:28 +01:00
Mark Paluch
c505caf1f2 Prepare next development iteration.
See #1130
2022-02-18 10:48:59 +01:00
Mark Paluch
32af81ae32 Release version 2.3.2 (2021.1.2).
See #1130
2022-02-18 10:41:00 +01:00
Jens Schauder
e8bd616a03 Fixes NPE in PersistentPropertyPathExtension.equals.
Closes #1164
2022-02-15 10:41:26 +01:00
Jens Schauder
632718b379 Fix missing class issue with H2 version 2.0.202
With older versions H2 returned a proprietary  instance of `TimestampWithTimeZone` from `ResultSet.getObject()`.
We used to support the conversion of that to an `OffsetDateTime`.

With the most recent versions `TimestampWithTimeZone` is no longer part of the H2 driver, and we only register the converter when we encounter older versions of H2.

Closes #1114
See https://github.com/h2database/h2database/pull/1359
2022-01-17 13:18:07 +01:00
Christoph Strobl
6b401e3db3 Prepare next development iteration.
See #1083
2022-01-14 10:44:57 +01:00
Christoph Strobl
2120220d34 Release version 2.3.1 (2021.1.1).
See #1083
2022-01-14 10:28:56 +01:00
Jens Schauder
9f09967ad5 Add JdbcValue as a simple type.
Closes #1122
2022-01-12 11:46:26 +01:00
Jens Schauder
ba26286395 Prepare next development iteration.
See #1070
2021-11-12 11:00:03 +01:00
Jens Schauder
5040f949c9 Release version 2.3 GA (2021.1.0).
See #1070
2021-11-12 10:49:36 +01:00
Mark Paluch
239f8c75bd Polishing.
Use column aliases in order-by/expressions when column is aliased. Reduce method visibility in tests.

Closes #968
Original pull request: #1080.
2021-11-08 10:22:07 +01:00
Jens Schauder
7d1ed85cbe Use fully qualified names in ORDER BY clause.
Closes #968
Original pull request: #1080.
2021-11-08 10:22:03 +01:00
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
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
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
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
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
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
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
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