Commit Graph

84 Commits

Author SHA1 Message Date
Mark Paluch
529fc71c33 Polishing.
Reformat code. Simplify config.

See #675
2023-11-07 15:51:49 +01:00
Jens Schauder
7c696ac196 Polishing.
Update README files to reference all the examples for Spring Data JDBC.
Also fix a typo in another README.

See #675
2023-11-07 15:50:51 +01:00
Jens Schauder
15783e4f7c Add examples to use Single Query Loading.
Query by Id works via the repository.

Query derivation doesn't since it side steps the DataAccessStrategy.

Closes #675
2023-11-07 15:50:28 +01:00
Eric Haag
cec144ea0b Connect build to ge.spring.io.
Add annotation processors for compiler avoidance and disable build caching for tests.

Closes #673
2023-11-06 10:19:29 +01:00
Mark Paluch
6430790e63 Adopt immutables test to newly introduced converter infrastructure.
See #669
2023-10-25 14:30:36 +02:00
Jens Schauder
c4d1ca270f Demonstrate Schema Generation in Spring Data Jdbc.
This provides the source examples for the upcoming blog post.

Closes #667
2023-08-24 12:48:04 -07:00
Oliver Drotbohm
cf573610ad Update jMolecules example to latest dependencies. 2023-07-22 02:57:25 +02:00
Mark Paluch
f051de145e Move off deprecated code.
See #659
2023-04-24 13:46:08 +02:00
Christoph Strobl
d172c56dde Add native data-jdbc sample.
See #654
2022-12-12 11:16:15 +01:00
Christoph Strobl
d52d73f34c Upgrade to Spring 6 and Spring Boot 3.
See #654
2022-12-12 11:15:36 +01:00
Marc Wrobel
ce994f9ea0 Fix typos in documentations.
Fix typos in READMEs, javadoc, comments and code.

Original pull request #642
2022-07-29 13:07:11 +02:00
Mark Paluch
586092a287 Update JDBC examples to work with newer H2 versions.
See #636
2022-05-19 11:23:01 -05:00
Mark Paluch
86e67a483c Use BeforeConvertCallback to generate entity identifiers.
Related ticket: https://github.com/spring-projects/spring-data-relational/issues/1232
See #636
2022-05-19 11:23:01 -05:00
Mateusz Chrzonstowski
fc8cdbe864 Use a proper configuration class name in docs.
Original pull request: #635.
2022-04-26 14:07:49 +02:00
Jens Schauder
092e31e890 Adds an example for custom update strategies.
See https://spring.io/admin/blog/4540-spring-data-jdbc-how-do-update-just-the-aggregate-root-instead-of-all-the-referenced-entities
2022-01-19 14:59:09 +01:00
Jens Schauder
0bdca5b05c Adds an example how to use caching.
Original pull request #630
2021-10-01 15:22:24 +02:00
Jens Schauder
387ca8c6c3 Adds examples how to model bidirectional relationships.
Original pull request #629
2021-09-22 15:07:16 +02:00
Jens Schauder
de08dcf9c0 Polishing.
Fix alphabetic order of modules.

Original pull request #628
2021-09-09 15:09:11 +02:00
Jens Schauder
22548d45e1 Add examples for various way to generate IDs for Spring Data JDBC.
Original pull request #628
2021-09-09 15:03:59 +02:00
Oliver Drotbohm
017a810eed Upgrade to jMolecules 1.3 and jMolecules Integrations 0.5.
Also switch to the ValueObject interface instead of the annotation for consistency.
2021-09-01 23:14:44 +02:00
Oliver Drotbohm
b92aa23505 Upgrade to jMolecules 0.4 release. 2021-06-23 14:55:56 +02:00
Jens Schauder
c981f62aab Polishing.
Fixes a tiny typo.
Comments and formatting to make the important parts more obvious.

Original pull request #624
2021-05-07 10:48:48 +02:00
Mark Paluch
744ee32425 Add example for using Immutables with Spring Data JDBC.
Original pull request #624
2021-05-07 10:48:47 +02:00
Oliver Drotbohm
3e71ec637c Switch to jMolecules integrations 0.4.
To allow records to be used as Identifier implementations (xmolecules/jmolecules-integrations#43). Updated MongoDB and JDBC samples accordingly.
2021-04-30 10:54:02 +02:00
Mark Paluch
e565f33872 Switch MongoDB samples to records.
See #606.
2021-04-30 10:29:22 +02:00
Mark Paluch
23dcae3a17 Switch to records.
See #606.
2021-04-30 10:28:59 +02:00
Mark Paluch
32d118f046 Omit local variable declaration using var.
See #606.
2021-04-30 10:28:51 +02:00
Mark Paluch
c23d0c6198 Polishing.
Original pull request: #617.
See #583.
2021-04-28 10:18:15 +02:00
Mark Paluch
ec8557c7da Update copyright years to 2021.
Closes #616
2021-04-27 14:47:20 +02:00
Mark Paluch
04c9383550 Polishing.
Add author tags. Reduce visibility where applicable. Reformat code.

See #583.
Original pull request: #615.
2021-04-27 14:45:12 +02:00
divya_jnu08
c1d4eb5e6b Migrate JDBC examples to JUnit 5.
See #583.
Original pull request: #615
2021-04-27 14:44:49 +02:00
Jens Schauder
8f123dcafa Uses BeforeConvertEvent instead of BeforeSaveEvent.
Closes: #599
Original pull request: #601.
2021-04-19 09:29:14 +02:00
Jens Schauder
d70804b15c Switch to lombok.With
This replaces the use of lombok.experimental.Wither which is deprecated.

Closes #611
2021-04-09 14:05:08 +02:00
Oliver Drotbohm
e2b9de4fbb Add Spring Data JDBC example for jMolecules. 2021-03-17 09:43:46 +01:00
Jens Schauder
01b0a5674a #566 - Fix broken test by searching for the correct name.
Also polishing.
2020-11-09 11:49:21 +01:00
Jesse Friedland
9f6b6f3cbd #566 - Demonstrate custom query on a two entity aggregate.
Based on the discussion at https://stackoverflow.com/questions/52978700/how-to-write-a-custom-query-in-spring-data-jdbc
2020-11-05 17:34:11 +01:00
Mark Paluch
3d88c50655 #565 - Re-enable JDBC MyBatis examples after.
Neumann SR1 ships with a fix for the MyBatis integration.
2020-06-16 13:47:43 +02:00
Jens Schauder
aa29bc5991 #553 - Disable only the broken test not the complete module. 2020-05-15 08:47:59 +02:00
Mark Paluch
6e1abe4869 #553 - Disable MyBatis examples for now.
See https://jira.spring.io/browse/DATAJDBC-542.
2020-05-14 09:23:33 +02:00
Jens Schauder
038ac0a932 #563 - Adapts JDBC examples to changes in Spring Data JDBC 2.0.
Since SQL Identifiers are now quoted letter casing must be taken into consideration when specifying column names in `@Column` or similar.
Disabled Liquibase which isn't used/configured at all and therefore doesn't work.
Moved application context configurations to use `AbstractJdbcConfiguration`.
2020-05-13 15:54:28 +02:00
Jens Schauder
d320ccac6d #543 - Changes CHAR to VARCHAR.
CHAR used to cause the author attribut to get right padded with spaces during insert.
2019-11-26 15:31:16 +01:00
Mark Paluch
481eb57aec #542 - Polishing.
Remove properties that are no longer needed as they are provided by Spring Boot.
2019-11-11 14:40:37 +01:00
Mark Paluch
34e73d360e #542 - Upgrade to Spring Boot 2.2.1. 2019-11-11 14:40:37 +01:00
Jens Schauder
d8ae66e5e8 #538 - Reenable JDBC/MyBatis examples disabled by #514. 2019-10-14 13:36:42 +02:00
Mark Paluch
a44f93a9bc #441 - Polishing.
Reuse provided configuration for NamedParameterJdbcOperations. Use listeners and EntityCallbacks. Remove explicit dependency versions.
2019-08-13 14:54:52 +02:00
Jens Schauder
db66b173b8 #441 - Demonstrating how to do direct inserts with the JdbcAggregateTemplate.
See also: https://jira.spring.io/browse/DATAJDBC-282
2019-08-13 14:49:31 +02:00
Oliver Drotbohm
50fadd566e #514 - Skipping MyBatis tests for now.
Until we solve the SQL mapping inconsistency.
2019-08-08 19:24:08 +02:00
Oliver Drotbohm
8313a1ac6d #514 - Switch to Spring Data JDBC provided config class for MyBatis. 2019-08-08 19:01:13 +02:00
Oliver Drotbohm
7f1e8239f1 #514 - Fixed JDBC example. 2019-08-08 19:01:13 +02:00
Oliver Drotbohm
fb8dccd9d4 #514 - Prepare upgrade to Spring Data release train Moore.
Upgrade to latest versions of Spring HATOEAS and Spring Plugin.
2019-08-08 18:52:23 +02:00