Commit Graph

2098 Commits

Author SHA1 Message Date
Jens Schauder
25effcddb3 After release cleanups.
See #1791
2024-09-13 12:42:28 +02:00
Jens Schauder
eb9168f95e Prepare next development iteration.
See #1791
2024-09-13 12:42:27 +02:00
Jens Schauder
f7936e0fe6 Release version 3.4 M1 (2024.1.0).
See #1791
2024-09-13 12:39:33 +02:00
Jens Schauder
41fee5f225 Prepare 3.4 M1 (2024.1.0).
See #1791
2024-09-13 12:39:15 +02:00
Jens Schauder
6af3648004 Upgrade ArchUnit to 1.3.0
Closes #1879
2024-09-12 14:46:08 +02:00
Jens Schauder
615c79cb3e Polishing.
See #1873
Original pull request #1875
2024-09-12 09:24:43 +02:00
Mikhail2048
1b9b9b2ed2 Add converter for microsoft.sql.DateTimeOffset.
Original pull request #1875
Closes #1873
2024-09-12 09:23:35 +02:00
Jens Schauder
44f96b86f7 Upgrade to jsqlparser 5.0.
`ExpressionList` is now extending `ArrayList` requiring minor code changes.

Closes #1878
2024-09-11 10:28:42 +02:00
Tran Ngoc Nhan
7b2c4e5f23 Remove unused imports.
Original pull request #1877
2024-09-09 08:58:02 +02:00
Mark Paluch
72774135a7 Polishing.
Remove Preprocessor interface. Add property accessors to RelationalQueryLookupStrategy. Reuse property accessors instead of loosely coupled object access.

See #1856
Original pull request #1863
2024-09-04 10:04:55 +02:00
Jens Schauder
f937738038 Support for table names in SpEL expressions.
SpEL expressions in queries get processed in two steps:

1. First SpEL expressions outside parameters are detected and processed.
This is done with a `StandardEvaluationContext` with the variables `tableName` and `qualifiedTableName` added.
This step is introduced by this commit.

2. Parameters made up by SpEL expressions are processed as usual.

Closes #1856
Original pull request #1863
2024-09-04 10:04:55 +02:00
Jens Schauder
4221840538 Polishing.
Fixing a test used for performance reasons.

Formatting a test.
Removing public modifier.
Separating test methods from infrastructure.

Original pull request #1863
See #1856
2024-09-04 10:04:54 +02:00
Jens Schauder
b006923f0d Polishing.
Original pull request #1869
2024-08-30 13:28:27 +02:00
Jens Schauder
848ffee253 Remove deprecated code.
Original pull request #1869
2024-08-30 13:28:01 +02:00
arefbehboudi
c8b9697c51 Refactor code with instanceof pattern variable.
In some cases, we currently use the traditional `instanceof` checks followed by explicit type casting.
With the introduction of pattern matching in recent Java versions, we can refactor these checks to make the code more concise and readable.

Original pull request #1868
2024-08-30 10:13:48 +02:00
Jens Schauder
9b0b91bfd0 Avoid selection of duplicate columns.
Closes #1865
2024-08-29 12:32:29 +02:00
Mark Paluch
07e13aa3a9 Update GitHub Actions.
See #1791
2024-08-21 09:28:23 +02:00
albina0104
53e6447f38 Remove a duplicated sentence from documentation.
Original pull request #1860
2024-08-19 09:48:44 +02:00
Jens Schauder
0da3401e42 Add documentation for JdbcAggregateTemplate.
Closes #1841
Original pull request #1854
2024-08-14 15:16:43 +02:00
Jens Schauder
7e6f5482ba Dedicated exception for aggregate roots without id property.
We now distinguish between an id not set during insert and a supposed aggregate root without id property.

Closes #1502
Original pull request #1855
2024-08-14 13:19:47 +02:00
Jens Schauder
1c756795d1 Polishing.
Formatting and removing public modifier from test methods.

See #1502
Original pull request #1855
2024-08-14 13:18:52 +02:00
Christoph Strobl
2040247a11 Add support for using custom BeanNameGenerator.
Closes: #1853
2024-08-09 11:19:37 +02:00
Jens Schauder
c91d3bd529 Improve documentation about query construction.
Closes #719
2024-08-08 14:24:16 +02:00
Mark Paluch
356f667df6 Upgrade to Maven Wrapper 3.9.8.
See #1851
2024-08-08 10:22:10 +02:00
Mark Paluch
85eea11627 Update CI properties.
See #1791
2024-08-08 10:20:12 +02:00
Jens Schauder
47c2917989 Add documentation for SpEL support.
Closes #1719
2024-08-07 16:11:25 +02:00
Jens Schauder
3a7c94028b Fixes Javadoc issue
Closes #1849
2024-08-05 17:31:42 +02:00
Jens Schauder
9deadf64d0 Fix the example for spring version configuration.
Closes #1848
2024-08-05 12:34:16 +02:00
Jens Schauder
46d0a0629b Polishing.
Minor formatting.
Adding author tag in Javadoc.
Fixing warnings.

Original pull request #1844
2024-08-05 11:27:49 +02:00
sven.rienstra
b11b85aef9 Add support for CASE statement in select and order by clauses.
Original pull request #1844
2024-08-05 11:27:49 +02:00
Eric Haag
1a860bfd3f Migrate build to Spring Develocity Conventions extension.
Also adopt Develocity environment variables.

Original pull request #1847
2024-08-05 11:27:42 +02:00
Sanghyuk Jung
ec3c7081a8 Remove duplicated "the" in JavaDoc.
Original pull request #1840
2024-08-02 13:22:42 +02:00
Mark Paluch
122c51fb90 Bundle Javadoc with Antora documentation site.
Closes #1846
2024-07-31 15:12:34 +02:00
Mark Paluch
4978b4c0e3 Polishing.
Correctly assign SQL type for tuples.

See #1323
Original pull request: #1838
2024-07-23 13:42:37 +02:00
Mark Paluch
f0d3b5e425 Polishing.
Refactor convertAndAddParameter method to writeValue(…) decoupling responsibilities for a clearer value conversion code path. Also, refactor collection conversion to functional callback-style and extend test assertions.

See #1323
Original pull request: #1838
2024-07-22 15:05:19 +02:00
Jens Schauder
8241aa1222 Allow passing of tuples to repository query methods.
Closes #1323
Original pull request: #1838
2024-07-22 15:05:18 +02:00
Jens Schauder
23d91d62bb Run test only on HsqlDb.
JdbcRepositoryEmbeddedIntegrationTests no longer runs for all databases, since it doesn't tests anything specific to differen RDBMSs.
Therefore the test also got renamed.

See #1565
2024-07-17 11:18:17 +02:00
Jens Schauder
b3a1dc5638 Consider sanitised names when copying parameter sources.
Closes #1565
2024-07-17 11:13:02 +02:00
Jens Schauder
1b091da5ee Polishing.
Make test methods package private.

See #1565
2024-07-17 10:57:25 +02:00
Jens Schauder
82c84342a2 Replaced all usage of catalog with schema.
Catalog was used by mistake.
Spring Data JDBC has no support for multiple catalogs, only for multiple schema.

Closes #1729
2024-07-16 09:55:47 +02:00
Jens Schauder
effc162d6f Add public factory method to SubselectExpression.
This allows using Select instances as Expression where this isn't yet anticipated.

Closes #1831
2024-07-16 09:55:47 +02:00
Jens Schauder
11384ab91f Add public factory method to SubselectExpression.
This allows using Select instances as Expression where this isn't yet anticipated.

Closes #1831
2024-07-09 13:33:18 +02:00
Oliver Drotbohm
112c084b29 Avoid double-conversion of values considered simple.
MappingJdbcConverter previously tried to create a JdbcValue for simple values via the ConversionService, only to drop the conversion result if the conversino did not result in a JdbcValue eventually. In that case it triggered an additional (same) conversion to then handle the wrapping of the conversion result into a JdbcValue manually.

This commit alters the flow so that it only triggers the conversion once and manually applies the JdbcValue wrapping only if the result of the original conversion is not a JdbcValue, yet.

Original pull request #1830
2024-07-09 10:03:26 +02:00
Jens Schauder
7bd907c5e6 Fix regression of loading empty arrays.
Closes #1826
See #1812
2024-07-02 15:07:52 +02:00
Jens Schauder
eaa3d66842 Use first column in case of duplicate columns.
Also, fallback on column names when label is not present.

See #1680
Original pull request #1825
2024-07-01 13:33:19 +02:00
Jens Schauder
faee85116a Reestablish warning on duplicate column in query.
Closes #1680
Original pull request #1825
2024-07-01 13:33:18 +02:00
Jens Schauder
5c76ddca9e Fix Auditing for embedded fields.
The reason for auditing to not work on embedded fields is that EmbeddedRelationalPersistentProperty and BasicRelationalPersisntentProperty were not considered equal even when they represent the same field.

Note: the fix is somewhat hackish since it breaks the equals contract for EmbeddedRelationalPersistentProperty.

Closes #1694
See 1545e184ef
2024-06-27 10:39:12 +02:00
Mark Paluch
ecd926ef95 Remove Slack notification.
See #1822
2024-06-20 14:26:16 +02:00
Mark Paluch
13e5414123 Switch to Broadcom docker proxy.
Closes #1822
2024-06-20 14:26:03 +02:00
Jens Schauder
236d054a0e Create one connection pool for Oracle.
We now use one pooled `DataSource` for Oracle.

This should avoid problems with the TNS-Listener, which seems to have a problem with constantly opening and closing connections.

Closes #1815
Original pull request #1816
2024-06-14 09:17:37 +02:00