Kurt Niemi
5f4ef2ffcb
Add support for schema creation using Liquibase.
...
We now support schema creation and schema migration by generating Liquibase changesets from mapped entities. We also support evolution of schema by comparing existing tables with mapped entities to compute differential changesets.
Closes #756
Original pull request: #1520
2023-06-06 08:51:16 +02:00
Mark Paluch
b92586f8c0
Add expression support for @MappedCollection annotation.
...
See #1325
Original pull request: #1461
2023-05-31 16:00:17 +02:00
Kurt Niemi
a73be5a829
Add SpEL support for @Table(schema=…).
...
Add SpEL support for schema property in `@Table` annotation
See #1325
Original pull request: #1461
2023-05-31 16:00:17 +02:00
Mark Paluch
549b807003
Polishing.
...
Reuse existing EvaluationContextProvider infrastructure and static parser/parser context instances. Parse expressions early. Update Javadoc to reflect SpEL support.
Reformat code to use tabs instead of spaces. Rename types for consistency. Rename SpelExpressionResultSanitizer to SqlIdentifierSanitizer to express its intended usage.
Eagerly initialize entities where applicable. Simplify code.
See #1325
Original pull request: #1461
2023-05-31 16:00:17 +02:00
Kurt Niemi
68a13fe12b
Add SpEL support for @Table and @Column.
...
If SpEl expressions are specified in the `@Table` or `@Column` annotation, they will be evaluated and the output will be sanitized to prevent SQL Injections.
The default sanitization only allows digits, alphabetic characters, and _ character. (i.e. [0-9, a-z, A-Z, _])
Closes #1325
Original pull request: #1461
2023-05-31 16:00:17 +02:00
Mark Paluch
064b3d3da7
Move Projections documentation to the top level.
...
Closes #1515
2023-05-30 15:18:50 +02:00
George Papadopoulos
ac80e51425
Use awaitSingle operator instead of awaitFirst.
...
Operators `awaitFirstXxx` are going to be deprecated. Also, awaitFirst operator has no value on Mono types.
Closes : #1355
Signed-off-by: George Papadopoulos <george.719pap@gmail.com >
2023-05-26 15:18:11 +02:00
Greg L. Turnquist
2b84f7d63b
Use Harbor Proxy service on CI.
...
When run on CI servers, leverage an internal proxy service using Testcontainers ability to plugin a custom ImageNameSubstitor.
See #1518
Original Pull Request: #1516
2023-05-17 10:23:20 -05:00
Mark Paluch
bc70b0d435
Polishing.
...
Reformat code.
See #1512
Original pull request: #1513
2023-05-17 10:52:52 +02:00
Jens Schauder
e0a0bb2b5d
Do not prefix unsafe orer by expressions with table prefix.
...
Such expressions now get passed on unchanged.
This also deprecates org.springframework.data.r2dbc.query.QueryMapper.getMappedObject(Sort, RelationalPersistentEntity<?>).
It was only used in tests and translates an Order into another Order, which sounds wrong.
Closes #1512
Original pull request: #1513
2023-05-17 10:52:48 +02:00
Christoph Strobl
9acf426ff7
After release cleanups.
...
See #1498
2023-05-12 14:18:54 +02:00
Christoph Strobl
999124763d
Prepare next development iteration.
...
See #1498
2023-05-12 14:18:52 +02:00
Christoph Strobl
69ce8b7edf
Release version 3.1 GA (2023.0.0).
...
See #1498
2023-05-12 14:14:39 +02:00
Christoph Strobl
370b757a2c
Prepare 3.1 GA (2023.0.0).
...
See #1498
2023-05-12 14:14:09 +02:00
Jens Schauder
a26557e76b
Introduce SqlSort.
...
SqlSort allows the specification of unsafe order-by-expressions.
Order-by-expressions that are not declared unsafe are only accepted when they
either match a property or consist only of digits, letters, underscore, dot, or parentheses.
Closes #1507
2023-05-12 10:54:17 +02:00
Oleg Oshmyan
15980174af
Remove unnecessary reification from Kotlin R2DBC extensions.
...
This allows calling the extensions from generic code that has erased types.
Original pull request #1496
2023-04-25 09:32:04 +02:00
Greg L. Turnquist
dca880c412
After release cleanups.
...
See #1456
2023-04-14 12:00:05 -05:00
Greg L. Turnquist
ffefc99e2e
Prepare next development iteration.
...
See #1456
2023-04-14 11:59:59 -05:00
Greg L. Turnquist
4fd5d6c81d
Release version 3.1 RC1 (2023.0.0).
...
See #1456
2023-04-14 11:54:02 -05:00
Greg L. Turnquist
6fc4243327
Prepare 3.1 RC1 (2023.0.0).
...
See #1456
2023-04-14 11:53:26 -05:00
Mark Paluch
b945060753
Polishing.
...
Move off deprecated getRequiredLeafProperty() method in other places.
See #1489
2023-04-12 11:09:12 +02:00
Mikhail2048
e106b2099b
Migrated off deprecated PropertyPath methods.
...
Closes #1489
2023-04-12 11:08:54 +02:00
Mark Paluch
44f77215bf
Reinstate integration tests for R2DBC MySQL.
...
Closes #1475
2023-04-11 10:50:40 +02:00
Jens Schauder
21428af950
Remove snapshot plugin repository from the pom.xml.
...
Closes #1485
2023-04-06 17:05:44 +02:00
Mark Paluch
009ad3e7f5
Upgrade to Maven Wrapper 3.9.1.
...
See #1482
2023-04-06 16:16:39 +02:00
Greg L. Turnquist
c1ada2c3bd
Polishing.
2023-04-04 16:17:32 -05:00
Greg L. Turnquist
ccd7f19073
Test against Java 20 on CI.
...
See #1462 .
2023-04-04 16:16:27 -05:00
Oliver Drotbohm
d68605b6d8
Adapt to API changes in Spring Data Common's PersistentPropertyPathAccessor.
...
Fixes #1477 .
Related ticket: spring-projects/spring-data-commons#2813 .
2023-04-04 11:45:38 +02:00
Jens Schauder
2ed2d2e1f7
Upgrade DB2 JDBC driver to 11.5.8.0.
...
Closes #1471
2023-03-30 16:29:23 +02:00
Jens Schauder
19b1268cb1
Upgrade HsqlDb JDBC driver to 2.7.1.
...
Closes #1470
2023-03-30 16:27:58 +02:00
Jens Schauder
7c2c71342c
Upgrade Maria DB JDBC driver to 3.1.3.
...
Closes #1469
2023-03-30 16:27:09 +02:00
Jens Schauder
eca8c233ab
Upgrade MS Sql Server JDBC driver to 12.2.0.jre11.
...
Closes #1468
2023-03-30 16:26:16 +02:00
Jens Schauder
7d90092fb9
Upgrade MySql JDBC driver to 8.0.32.
...
Closes #1467
2023-03-30 16:25:10 +02:00
Jens Schauder
2c615b4207
Upgrade Postgres JDBC driver to 42.6.0.
...
Closes #1466
2023-03-30 16:24:07 +02:00
Jens Schauder
b5f7fbd397
Upgrade Oracle JDBC driver to 19.18.0.0.
...
Closes #1465
2023-03-30 16:23:17 +02:00
Greg L. Turnquist
af959ecf36
Update CI properties.
...
See #1456
2023-03-28 13:58:26 -05:00
Jens Schauder
e78f7df53d
Polishing.
...
Original pull request #1209
See #1110
2023-03-23 15:43:54 +01:00
Mikhail2048
d893259d4e
Remove unnecessary parameters after moving of getReference(Identifier Processing).
...
Original pull request #1209
See #1110
2023-03-23 15:41:15 +01:00
Jens Schauder
58a67ceb2a
Polishing.
...
Added `@author` tags.
Undo the change in behaviour of getReference(IdentifierProcessing).
See #1110
Original pull request #1458
2023-03-23 10:48:31 +01:00
Kurt Niemi
18eda61f15
Deprecate redundant getReference(IdentifierProcessing) method.
...
Closes #1110
Original pull request #1458
2023-03-23 10:45:49 +01:00
Christoph Strobl
e4ec418386
After release cleanups.
...
See #1430
2023-03-20 15:05:36 +01:00
Christoph Strobl
0bfed4042d
Prepare next development iteration.
...
See #1430
2023-03-20 15:05:34 +01:00
Christoph Strobl
3ff271f100
Release version 3.1 M3 (2023.0.0).
...
See #1430
2023-03-20 15:01:48 +01:00
Christoph Strobl
16241e1288
Prepare 3.1 M3 (2023.0.0).
...
See #1430
2023-03-20 15:01:20 +01:00
Kurt Niemi
5c16a753ea
Fix broken links in reference documentation.
...
Closes #1412
Original pull request #1453
2023-03-17 09:42:19 +01:00
Mark Paluch
7341a02345
Reinstate support for mariadb-r2dbc.
...
Closes #1364
2023-03-16 15:51:37 +01:00
Mark Paluch
09189a4c41
Polishing.
...
Simplify TypeInformation creation from a MethodParameter.
Original pull request: #1356
See #1343
2023-03-15 17:02:10 +01:00
Jens Schauder
d1e039a387
Convert only contents of collections using StringBasedJdbcQuery.
...
Contents of Iterables that aren't collections will not be converted individually.
Closes #1343
Original pull request: #1356
2023-03-15 17:02:10 +01:00
Jens Schauder
6855b9bd25
Polishing.
...
Simplify test.
Original pull request: #1356
See #1343
2023-03-15 17:02:10 +01:00
Mark Paluch
637d06a9a0
Apply custom converter for Collection-like values in queries.
...
We now apply converters only for Collection-like values and no longer to Iterable types.
Closes #1452
2023-03-15 16:46:01 +01:00