Commit Graph

80 Commits

Author SHA1 Message Date
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
Spring Operator
ccae97890f #491 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 426 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 08:13:14 +01:00
Spring Operator
6d51ebf294 #473 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://mybatis.org/dtd/mybatis-3-config.dtd (301) with 1 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-config.dtd) result SSLHandshakeException).
* http://mybatis.org/dtd/mybatis-3-mapper.dtd (301) with 2 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-mapper.dtd) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 70 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://maven.apache.org/maven-v4_0_0.xsd with 6 occurrences migrated to:
  https://maven.apache.org/maven-v4_0_0.xsd ([https](https://maven.apache.org/maven-v4_0_0.xsd) result 301).
* http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd with 1 occurrences migrated to:
  https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd) result 302).

# Ignored
These URLs were intentionally ignored.

* http://java.sun.com/xml/ns/persistence with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 152 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 77 occurrences

Original pull request: #472
2019-03-20 10:10:59 -05:00
Spring Operator
5e80d9cff6 #452 - URL cleanup in POMs.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://ethlo.com/maven (301) migrated to:
  https://ethlo.com/maven ([https](https://ethlo.com/maven) result 404).

## Fixed Success
These URLs were fixed successfully.

* http://projects.spring.io/spring-data-cassandra migrated to:
  https://projects.spring.io/spring-data-cassandra ([https](https://projects.spring.io/spring-data-cassandra) result 301).
* http://projects.spring.io/spring-data-jdbc migrated to:
  https://projects.spring.io/spring-data-jdbc ([https](https://projects.spring.io/spring-data-jdbc) result 301).
* http://projects.spring.io/spring-data-jpa migrated to:
  https://projects.spring.io/spring-data-jpa ([https](https://projects.spring.io/spring-data-jpa) result 301).
* http://projects.spring.io/spring-data-ldap migrated to:
  https://projects.spring.io/spring-data-ldap ([https](https://projects.spring.io/spring-data-ldap) result 301).
* http://projects.spring.io/spring-data-mongodb migrated to:
  https://projects.spring.io/spring-data-mongodb ([https](https://projects.spring.io/spring-data-mongodb) result 301).
* http://projects.spring.io/spring-data-solr migrated to:
  https://projects.spring.io/spring-data-solr ([https](https://projects.spring.io/spring-data-solr) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/maven-v4_0_0.xsd
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-07 17:29:30 +01:00
Mark Paluch
4f64e5dc8b #439 - Increase visibility of JDBC bean definitions.
Spring Data JDBC 1.1 introduces visibility changes to JdbcConfiguration and so we must declare overrides with at least the same visibility.
2018-12-10 16:32:23 +01:00