Commit Graph

646 Commits

Author SHA1 Message Date
Mark Paluch
6d9884df30 Prepare next development iteration.
See #1982
2025-02-14 09:52:50 +01:00
Mark Paluch
b01d141721 Release version 3.3.9 (2024.0.9).
See #1982
2025-02-14 09:50:00 +01:00
luckygc
86aa5c1162 Fix typo SqlGenerator.java
Original pull request #1987

Signed-off-by: luckygc <chenwwecm@gmail.com>

Commit message edited.
2025-02-11 13:01:51 +01:00
Mark Paluch
47836b96e7 Prepare next development iteration.
See #1959
2025-01-17 10:34:46 +01:00
Mark Paluch
6317905eee Release version 3.3.8 (2024.0.8).
See #1959
2025-01-17 10:32:18 +01:00
Mark Paluch
2e3b92a6e8 Polishing.
Reformat code.

See #1969
2025-01-13 12:16:43 +01:00
Jens Schauder
f7462c47f8 Invoke callbacks for find by Query methods.
Callback handlers are now properly called for findAll/One with Query parameter.

Closes #1979
2025-01-13 09:44:35 +01:00
Mark Paluch
bb8bde22b1 Extend license header copyright years to 2025.
See #1970
2025-01-08 09:56:55 +01:00
Christoph Strobl
f2763c9f43 Prepare next development iteration.
See #1940
2024-12-13 10:54:21 +01:00
Christoph Strobl
4de5ca0140 Release version 3.3.7 (2024.0.7).
See #1940
2024-12-13 10:51:13 +01:00
Mark Paluch
45057017a2 Prepare next development iteration.
See #1915
2024-11-15 11:47:57 +01:00
Mark Paluch
a2958a2f53 Release version 3.3.6 (2024.0.6).
See #1915
2024-11-15 11:45:38 +01:00
Jens Schauder
f0aab44525 Fix SQL generation for query with sorting.
Closes #1919
2024-10-25 15:25:32 +02:00
Mark Paluch
3be53f32fe Polishing.
Eliminate potential NoSuchElementException from unchecked Optional.get usage. Simplify stream. Return Staged value, fix Nullability annotations.

See #1907
Original pull request: #1920
2024-10-25 14:57:21 +02:00
Jens Schauder
66e0c64928 Fix id setting for partial updates of collections of immutable types.
We gather immutable entities of which the id has changed, in order to set them as values in the parent entity.
We now also gather unchanged entities.
So they get set with the changed one in the parent.

Closes #1907
Original pull request: #1920
2024-10-25 14:57:21 +02:00
Tran Ngoc Nhan
692aabd0de Polishing.
Pattern matching usage.
Diamond operator usage.
Remove unused import.
isEmpty usage.

Original pull request #1912
2024-10-21 09:22:44 +02:00
Mark Paluch
04e53dc452 Prepare next development iteration.
See #1882
2024-10-18 11:39:04 +02:00
Mark Paluch
ad1e6fb84e Release version 3.3.5 (2024.0.5).
See #1882
2024-10-18 11:36:33 +02:00
Mark Paluch
98508c5bbb Polishing.
Refine tests. Extend comment for future-me.

See #1900
Original pull request: #1903
2024-10-02 15:08:30 +02:00
Jens Schauder
5204336acc Do not convert binary data in List<byte[]> to array SQL type.
byte[] is mapped to BINARY data and is not considered tuple data.

The explicit check for byte[] is not very nice but matches the special handling in MappingJdbcConverter.writeJdbcValue

Closes #1900
Original pull request: #1903
2024-10-02 15:08:28 +02:00
Jens Schauder
37c3095cb9 Removes superfluous EnabledOnDatabase.
Closes #1902
2024-10-01 14:08:47 +02:00
Tran Ngoc Nhan
dc2e14ce81 Minor refactoring.
Original pull request #1895
2024-09-24 09:10:43 +02:00
Tran Ngoc Nhan
f94e1939ed Polishing.
Original pull request #1894
2024-09-23 09:22:10 +02:00
Jens Schauder
1823a49c62 Prepare next development iteration.
See #1858
2024-09-13 11:40:08 +02:00
Jens Schauder
906132e044 Release version 3.3.4 (2024.0.4).
See #1858
2024-09-13 11:36:55 +02:00
arefbehboudi
3abc25d52c 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:17:16 +02:00
Jens Schauder
cacb14cf94 Avoid selection of duplicate columns.
Closes #1865
2024-08-29 12:37:34 +02:00
Jens Schauder
069eb112be Prepare next development iteration.
See #1837
2024-08-16 10:08:54 +02:00
Jens Schauder
278a9c9aa2 Release version 3.3.3 (2024.0.3).
See #1837
2024-08-16 10:05:57 +02:00
Jens Schauder
51d20f2c06 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 14:22:19 +02:00
Jens Schauder
bec76278ff Polishing.
Formatting and removing public modifier from test methods.

See #1502
Original pull request #1855
2024-08-14 14:22:12 +02:00
Mark Paluch
94fcdc5cd4 Polishing.
Correctly assign SQL type for tuples.

See #1323
Original pull request: #1838
2024-07-23 13:42:49 +02:00
Mark Paluch
86e5e5aeb1 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:31 +02:00
Jens Schauder
c71cbee6fe Allow passing of tuples to repository query methods.
Closes #1323
Original pull request: #1838
2024-07-22 15:05:31 +02:00
Jens Schauder
65048700cf 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:26:07 +02:00
Jens Schauder
51e4fc945f Consider sanitised names when copying parameter sources.
Closes #1565
2024-07-17 11:26:07 +02:00
Jens Schauder
a3b8cc5671 Polishing.
Make test methods package private.

See #1565
2024-07-17 11:26:07 +02:00
Jens Schauder
749ce92fa3 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 10:20:19 +02:00
Jens Schauder
e8e317ccac Prepare next development iteration.
See #1818
2024-07-12 19:12:14 +02:00
Jens Schauder
06fa5f8a60 Release version 3.3.2 (2024.0.2).
See #1818
2024-07-12 19:09:19 +02:00
Jens Schauder
8ad31368af Fix regression of loading empty arrays.
Closes #1826
See #1812
2024-07-02 15:11:52 +02:00
Jens Schauder
fea01a5c53 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:35:15 +02:00
Jens Schauder
129d489dce Reestablish warning on duplicate column in query.
Closes #1680
Original pull request #1825
2024-07-01 13:35:15 +02:00
Jens Schauder
3e5ab63a78 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:40:34 +02:00
Mark Paluch
9ec80fac7c Prepare next development iteration.
See #1790
2024-06-14 10:47:59 +02:00
Mark Paluch
31e25012b9 Release version 3.3.1 (2024.0.1).
See #1790
2024-06-14 10:45:40 +02:00
Jens Schauder
8eca0a7065 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:19:39 +02:00
Jens Schauder
fd66677fcb Refine embeddable emptiness checks to consider whether the collection holds entities.
Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737
Original pull request: #1812
2024-06-11 10:21:13 +02:00
Paul Jones
4d4d9b5106 Add unit tests to verify DTO projection with AggregationReference.
Closes #1759
2024-06-10 15:16:34 +02:00
Mark Paluch
24a1ec823c Polishing.
Simplify code. Remove redundant calls.

Reformat code, remove trailing whitespaces, remove duplicate tests.

See #1802
Original pull request: #1810
2024-06-10 11:15:10 +02:00