Commit Graph

715 Commits

Author SHA1 Message Date
mipo256
21b74e2e3f Applies proper event handling before saving in batch.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message edited by Jens Schauder.

Original pull request #2065
Closes #2064
2025-06-11 14:53:39 +02:00
Jens Schauder
243c060bd8 Deprecate JdbcMySqlDialect.INSTANCE and MySqlDialect.MYSQL_IDENTIFIER_PROCESSING.
MySql does not have a fixed Identifierprocessing, therefore predefined instances doesn't make sense.

Closes #2060
See https://dev.mysql.com/doc/refman/8.4/en/identifier-case-sensitivity.html
2025-06-10 11:12:23 +02:00
Mark Paluch
64cdd24126 Prepare next development iteration.
See #2043
2025-05-16 14:18:47 +02:00
Mark Paluch
b891d19a45 Release version 4.0 M3 (2025.1.0).
See #2043
2025-05-16 14:16:18 +02:00
Jens Schauder
a3b24e4fec Fix JavaDoc errors.
Original pull request #1893
See #1006
2025-05-16 12:23:07 +02:00
Mark Paluch
80af6711ea Remove package-info from empty package.
Javadoc creation fails for empty packages with package-info.java

See #2043
2025-05-16 12:23:07 +02:00
Jens Schauder
19ff9fafa6 Fix Sql Scripts.
Original pull request #1893
2025-05-16 12:23:07 +02:00
Jens Schauder
563f8bb0a8 Polishing.
Formatting.

Original pull request #1893
See #1006
2025-05-16 12:23:07 +02:00
Jens Schauder
78f433608e Fix import after rebase.
Original pull request #1893
See #1006
2025-05-16 12:23:06 +02:00
Mikhail2048
1d49abf0c2 Consider QueryMappingConfiguration for part tree queries.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message edited by Jens Schauder

Original pull request #1893
Closes #1006
2025-05-16 12:23:06 +02:00
Mark Paluch
cd17bb2da8 Implement RepositoryFactorySupport.getEntityInformation(RepositoryMetadata) instead of private overload.
Overriding the proper variant of EntityInformation is now possible because we no longer utilize a private method in addition to the public one leading to partial customization of EntityInformation.

Closes #2053
2025-05-16 12:23:06 +02:00
Jens Schauder
5d3d38e8ef Polishing.
Formatting.

Original pull request #2000
See #1998
2025-05-16 12:23:06 +02:00
mipo256
1ef4182907 Extract RowMapper into top level classes.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message changed by Jens Schauder

Original pull request #2000
Closes #1998
2025-05-16 12:23:06 +02:00
mipo256
cb86d91ff0 Polishing.
Uses new switch syntax.

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message changed by Jens Schauder

Original pull request #2000
See #1998
2025-05-16 12:23:06 +02:00
Jens Schauder
00f4a61b82 Polishing.
Formatting.
Added a test.

Original pull request #2023
See #2008
2025-05-16 12:23:05 +02:00
mipo256
dcaef9c968 Fail on annotated query methods with @Lock.
Query methods that are not derived methods now cause an exception, when they are annotated with `@Lock`, since this combination is not supported.

Before they just logged a warning.

Comment edited by Jens Schauder

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
2025-05-16 12:23:05 +02:00
Jens Schauder
8225d692f6 Polishing.
Formatting.
Fixing SQL scripts.

Original pull request #1956
See #831
2025-05-16 12:23:05 +02:00
mipo256
4e465972fb Remove DbActionExecutionException.
We now raise the exceptions from `NamedParameterJdbcTemplate` directly.

If you used to extract the `cause` of a `DbActionExecutionException` you should now catch that Exception directly.

Original pull request #1956
Closes #831

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
2025-05-16 12:23:05 +02:00
Mark Paluch
54536255b0 Refine generic boundaries.
Kotlin reacts to JSpecify with increased nullability requirements.

See #1980
2025-05-16 12:23:05 +02:00
Christoph Strobl
806f807806 Prepare next development iteration.
See #1943
2025-05-16 12:23:05 +02:00
Christoph Strobl
a1b42d019b Release version 4.0 M1 (2025.1.0).
See #1943
2025-05-16 12:23:04 +02:00
Mark Paluch
8d8f349a4f Adopt to deprecation removals in Commons.
Closes #1944
2025-05-16 12:23:04 +02:00
Mark Paluch
27b0efc3f6 After release cleanups.
See #2042
2025-05-16 12:20:32 +02:00
Mark Paluch
8bb66d7c0c Prepare next development iteration.
See #2042
2025-05-16 11:31:15 +02:00
Mark Paluch
fb390ff9e4 Release version 3.5 GA (2025.0.0).
See #2042
2025-05-16 11:28:31 +02:00
Jens Schauder
94958f5eb6 Polishing.
Code style and formatting.

Original pull request #2036
See #2031
2025-05-08 12:09:04 +02:00
Mark Paluch
becc753e2f Polishing.
Deprecate original DialectResolver and JdbcArrayColumns as they've been in the wrong package and introduce replacements in the dialect package. Let deprecated types extend from their replacements to retain compatibility.

Make instance holders final, fix Javadoc typos, update reference docs.

Original pull request #2036
See #2031
2025-05-08 12:09:04 +02:00
mipo256
7698d487ba Introduced new JDBC dialect counterparts.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message edited by Jens Schauder

Original pull request #2036
Closes #2031
2025-05-08 12:08:36 +02:00
Mikhail Fedorov
58a3f01ccd Fix performance bug with large number of unnamed parameters
On some occasions where col in (:args) contain a really lot args, 10k+ for instance, this commit fixes a performance (high CPU) bug by NOT traversing the whole map in basically O(n^2) manner

Signed-off-by: Mikhail Fedorov <mfedorov761@gmail.com>

Squashed by Jens Schauder

Original pull request #2050
2025-05-07 10:31:02 +02:00
Jens Schauder
520d6a7d4d Polishing.
Added author tags.

Original pull request: #2049
See #2025
2025-05-06 16:06:29 +02:00
Daeho Kwon
e88f4fe299 Adopt to deprecated QueryMethod constructor.
Original pull request: #2049
Closes: #2025
2025-05-06 16:05:55 +02:00
Mark Paluch
0aecfcee73 Polishing.
Extract SequenceEntityCallbackDelegate from IdGeneratingBeforeSaveCallback. Renameto IdGeneratingEntityCallback and move callback to convert package.

Align return values and associate generated sequence value with the entity. Fix test. Add ticket references to tests.

Extract documentation partials.

See #1955
Original pull request: #2028
2025-04-24 09:51:02 +02:00
mipo256
d6121cbfe2 R2DBC @Sequence annotation support.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

See #1955
Original pull request: #2028
2025-04-24 09:42:24 +02:00
Mark Paluch
7e2064315f Prepare next development iteration.
See #2015
2025-04-22 11:26:48 +02:00
Mark Paluch
60fe3455ef Release version 3.5 RC1 (2025.0.0).
See #2015
2025-04-22 11:24:11 +02:00
Mark Paluch
85562ffc9a Switch from mysql to com.mysql groupId.
See #2032
2025-04-17 15:34:31 +02:00
Mark Paluch
c095c23bd7 Remove custom awaitility in favor of Build-managed versions.
Closes #2033
2025-04-17 09:47:45 +02:00
Mark Paluch
1f2e69452b Fix integration tests.
See #2003
Original pull request: #2005
2025-04-09 15:28:58 +02:00
Mark Paluch
e27a05880f Fix typo in sequence selection.
See #2003
Original pull request: #2005
2025-04-09 11:48:04 +02:00
Mark Paluch
eb25cc3ed4 Move Sequence to RelationalPersistentProperty.
Sequence details are now maintained on the property level instead of using the entity level. This is a more accurate representation of the underlying model and that properties are annotated and not entities. It also allows future extension of expanding sequence support to general properties.

Extract delegate for sequence generation. Move types to org.springframework.data.jdbc.core.convert to resolve package cycles.

See #2003
Original pull request: #2005
2025-04-09 10:45:47 +02:00
Mark Paluch
d0e43be314 Polishing.
Refine assignment flow and use early returns where possible. Cache empty MapSqlParameterSource. Reduce dependency on RelationalMappingContext using a lower-level abstraction signature. Simplify names. Use default value check from Commons. Fix log warning message. Add missing since tags.

Remove superfluous annotations and redundant code. Tweak documentation wording.

Closes #2003
Original pull request: #2005
2025-04-09 10:31:15 +02:00
mipo256
0fc3187916 Omit Sequence value generation when identifier value is provided or the entity is not new.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Closes #2003
Original pull request: #2005
2025-04-09 10:30:42 +02:00
Mark Paluch
8bedb3d7d0 Prepare next development iteration.
See #1996
2025-03-14 09:33:42 +01:00
Mark Paluch
f4b4a77ed7 Release version 3.5 M2 (2025.0.0).
See #1996
2025-03-14 09:31:05 +01:00
Jens Schauder
ba9021243c Remove usage of Slf4J.
Closes #2009
2025-03-11 10:27:01 +01:00
Jens Schauder
a7a9fbca5d Polishing.
Refining documentation.

Original pull request #2008
2025-03-10 15:20:17 +01:00
mipo256
1c15a8bade Clarify lack of @Lock support for String-based queries.
Original pull request #2008

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message edited.
2025-03-10 15:19:19 +01:00
Mark Paluch
8852ca4b52 Prepare next development iteration.
See #1942
2025-02-14 12:25:08 +01:00
Mark Paluch
c3e5a431b4 Release version 3.5 M1 (2025.0.0).
See #1942
2025-02-14 12:22:37 +01:00
luckygc
9b9a60c6d8 Fix typo SqlGenerator.java
Original pull request #1987

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

Commit message edited.
2025-02-11 12:59:08 +01:00