Commit Graph

573 Commits

Author SHA1 Message Date
Mark Paluch
fbc3bf09e1 Extend license header copyright years to 2024.
See #1709
2024-01-02 14:42:28 +01:00
Mark Paluch
95d3b63b10 Polishing.
Remove duplicate and unused code.

See #1695
2023-12-14 08:14:01 +01:00
Mark Paluch
04bf61598e Wrap associations in EmbeddedRelationalPersistentEntity.
We now also wrap associations to ensure embedded prefix propagation.

Closes #1695
2023-12-14 08:14:00 +01:00
Jens Schauder
e7558fa791 Fix loading of nested embedded entities.
Closes #1676
Original pull request: #1685
2023-12-13 14:25:30 +01:00
Mark Paluch
cc43be8d02 Adopt RelationalParameters and RelationalParameter to reflect the actual parameter type when using generics.
Closes #1691
2023-12-08 12:02:22 +01:00
Mark Paluch
343569bae0 Create PartTree against the domain type.
We now derive queries against the domain type and no longer using the result type to ensure query mapping and query creation against the domain type.

Closes #1688
2023-12-05 15:09:17 +01:00
Jens Schauder
152fe93bfc Nested tests now get properly executed.
See 9a00e62fe7
See #1681
2023-12-04 12:19:52 +01:00
Jens Schauder
9a00e62fe7 Properly delegate method calls for EscapingParameterSource.
Closes #1681
See #1682
2023-12-01 15:55:47 +01:00
Mark Paluch
7d59397968 Reuse TypeInformation during PersistentPropertyPath and PersistentEntity lookups.
We now avoid Class -> TypeInformation conversion if we already have TypeInformation at hand.

Closes #1679
2023-11-29 09:47:57 +01:00
Jens Schauder
5342e02b8d Polishing.
Removed tests for circular references since they are not supported by Spring Data Relational.

Closes #1599
See #756, #1600
Original pull request #1629
2023-11-24 13:28:55 +01:00
Evgenii Koba
9136d86ae1 Add support for foreign keys in schema generation within aggregates.
Closes #1599
See #756, #1600
Original pull request #1629
2023-11-24 13:26:04 +01:00
Jens Schauder
e2a7508adc Switch to Testcontainers Oracle Free.
Timeout increased from the default because that cause problems on CI.
Brought SD JDBC now uses `ojdbc11` as R2DBC.

Closes #1665
Original pull request #1668
2023-11-20 15:31:36 +01:00
Mark Paluch
126781f2f8 Polishing.
Reformat code.

See #1666
Original pull request: #1667
2023-11-20 14:46:19 +01:00
Jens Schauder
30961bfa50 Support for Id generation in Oracle using quoted identifiers.
The latest Oracle JDBC driver properly supports returning of generated ids,
both in batches and for quoted identifiers.

This allows us to now support this feature.

Closes #1666
Original pull request: #1667
2023-11-20 14:44:08 +01:00
Mark Paluch
654daf1237 Prepare next development iteration.
See #1642
2023-11-17 14:33:25 +01:00
Mark Paluch
fe6d599d8b Release version 3.2 GA (2023.1.0).
See #1642
2023-11-17 14:29:59 +01:00
Jens Schauder
42e786ca78 Fix Oracle database setup script.
Changed BIGINT to NUMBER.

See #1656
Original pull request #1663
2023-11-16 20:38:49 +01:00
Jens Schauder
15bb8d1eef Properly convert Map keys.
Keys of maps now get properly converted.
Among others this enables the use of enums as keys.

Closes #1656
Original pull request: #1663
2023-11-16 10:42:15 +01:00
Mark Paluch
5312731623 Reject Limit parameter using String-based queries.
Document limitations, add test cases for derived queries.

Closes #1654
2023-11-02 09:26:43 +01:00
Jens Schauder
6736d8334e Add conversion capabilities to the entity instantiator.
Closes #1646
2023-10-17 16:54:11 +02:00
Jens Schauder
3c7cbcfeeb Polishing.
Original pull request #1636
2023-10-16 11:01:23 +02:00
Simon Verhoeven
4062237e04 Update readme.
Cleanup.

Original pull request #1636
2023-10-16 11:01:15 +02:00
John Blum
b7855d010f Prepare next development iteration.
See #1614
2023-10-13 08:51:59 -07:00
John Blum
74ae9af708 Release version 3.2 RC1 (2023.1.0).
See #1614
2023-10-13 08:44:26 -07:00
Jens Schauder
8ba1204b2a Polishing.
Original pull request #1618
See #1554
2023-10-13 11:04:55 +02:00
Mark Paluch
5344197ba6 Fix identifier propagation for no-id list elements.
Original pull request #1618
See #1554
2023-10-13 10:28:30 +02:00
Mark Paluch
5398b94020 Deprecate Basic…Converter infrastructure.
Merge basic converters into Mapping…Converters and introduce deprecated variant to provide guidance for migration off the deprecated types.

Cleanup no longer required code.

Original pull request #1618
See #1554
2023-10-13 10:28:18 +02:00
Mark Paluch
4e3120ee0e Migrate JDBC to use RowDocument for reading aggregates.
Original pull request #1618
See #1554
2023-10-13 10:28:11 +02:00
Jens Schauder
9c36eb970b Fix MS Sql Server integration tests.
Closes #1638
2023-10-11 15:54:56 +02:00
Jens Schauder
210b63fcb4 Add failsafe:verify goal as an execution.
The failsafe plugin only fails during it's verify goal, not when actually executing the tests.

The goal is by default added to the verify phase.
But for the database tests this adds it to the integration-test phase.
This ensures that the build fail as soon a test for one database fails.

Closes #1637
2023-10-11 13:54:47 +02:00
Mark Paluch
a72bf1a65d Polishing.
Delegate BatchJdbcOperations calls to NamedParameterJdbcOperations. Refine since and deprecation tags.

See #1616
2023-10-11 09:54:44 +02:00
Jens Schauder
5d6d575ab2 Replace BatchJdbcOperations with Spring's NamedParameterJdbcOperations.
BatchJdbcOperations is still there, but deprecated, and not used except for deprecated places kept for backward compatibility.

This is possible since Spring Framework made the features offered by `BatchJdbcOperations` part of `NamedParameterJdbcOperations`.

Closes #1616
2023-10-11 09:54:44 +02:00
Jens Schauder
ddec3cc531 Adapt to new test infrastructure.
Originial pull request #1222
See #1220
See #1620
2023-10-10 08:34:05 +02:00
Jens Schauder
3b2e8c7a7e Upgrade to Mybatis Spring Version 2.1.0.
Closes #1220
Original pull request #1222
2023-10-10 08:33:33 +02:00
Jens Schauder
88ab6b60ca Remove excludes for maven test execution.
Maven Surefire and Failsafe plugins by default do not run inner classes, no matter if they are `@Nested` or just plain static inner classes.

This change removes this default exclude.

Closes #1627
See https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes
2023-09-28 14:21:03 +02:00
Mark Paluch
a555119f8b Polishing.
Remove Jetbrains annotation usage.

Simplify code, remove code that is commented out, extract methods, pass PersistentEntity as argument instead of creating instances that hold PersistentEntity as field to align the class lifecycle with its contextual usage.

Refactor AggregateReader lifecycle, use a single instance as there is no entity-specific state attached to AggregateReader.

Add Javadoc.

See #1448
Original pull request: #1622
2023-09-27 10:05:16 +02:00
Jens Schauder
9e41d25d15 Support Single Query Loading for aggregates with more than one collection.
Closes #1448
Original pull request: #1622
2023-09-27 10:04:55 +02:00
Mark Paluch
8fa9e3e1d5 Polishing.
Simplify type and interface arrangement.

See #1601
Original pull request: #1617
2023-09-26 14:40:01 +02:00
Mark Paluch
7b27d0e08c Add JMH benchmarks and optimizations to affected components.
See #1601
Original pull request: #1617
2023-09-26 14:40:01 +02:00
Jens Schauder
f3bc0af8c4 Polishing.
Simplify ValueFunction mapping. Remove invariants of findBy SQL generation in favor of the Condition-based variant. Reduce visibility. Change return value of AggregateReader to List

See #1601
Original pull request: #1617
2023-09-26 14:36:47 +02:00
Jens Schauder
0fdeaebbee Add support for arbitrary where clauses in Single Query Loading.
Closes #1601
Original pull request: #1617
2023-09-26 14:36:46 +02:00
Jens Schauder
6fb6110ca0 Remove dialect dependency from QueryMapper.
See #1601
Original pull request: #1617
2023-09-26 14:36:09 +02:00
Mark Paluch
610bc4521d Refine JDBC integration tests.
Introduce composed annotations and conditions to deduplicate annotations required for a test, to express database runtime conditions and database activation.
Simplify test configuration.
Split tests into unit test and integration test run.

Original pull request #1621
Closes #1620
2023-09-22 14:11:30 +02:00
Mark Paluch
1e20a32352 Polishing.
Tweak naming. Refine methods to static ones and collapse into a single method.

See #1615
2023-09-20 09:14:29 +02:00
Jens Schauder
bc644aa71c Fix RowDocumentIterator.hasNext.
This properly fixes the test setup, taking into account that @ActiveProfile by default replaces any profiles set via environment variable or system property.
It turns out that the hasNext calculation in RowDocumentIterator was wrong because

a) isBeforeFirst and isBeforeLast return both false when the ResultSet is empty.
b) isBeforeFirst and isBeforeLast aren't necessarily implemented for all ResultSets and for example DB2s ResultSet implementation don't support it by default.

Closes #1615
2023-09-20 09:14:29 +02:00
Mark Paluch
813fdf2a31 Prepare next development iteration.
See #1592
2023-09-15 15:06:53 +02:00
Mark Paluch
c8de948d3e Release version 3.2 M3 (2023.1.0).
See #1592
2023-09-15 15:06:53 +02:00
Mark Paluch
bd1c670d55 Add support for fluent limit(int) and scroll(OffsetScrollPosition) to Query by Example queries.
Closes #1609
2023-09-14 08:40:56 +02:00
Jens Schauder
4cf07be37c Polishing.
Original pull request #1604
See #1586
2023-09-08 16:08:07 +02:00
Jens Schauder
f60044225f Remove external column name prefixing for embedded entities.
Original pull request #1604
See #1586
2023-09-08 16:08:06 +02:00