Commit Graph

44 Commits

Author SHA1 Message Date
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
Mark Paluch
dc67d5272b #435 - Upgrade to Spring Boot 2.1.1.RELEASE.
Upgrade to Spring Boot 2.1.1. Cleanup POM references.
2018-11-30 13:48:47 +01:00
Oliver Gierke
d2eb42dad1 #421 - Elevate R2DBC example to top level project.
Moved r2dbc example to a top-level project. Switched to new Spring Data R2DBC project coordinates.

Original pull request: #422.
2018-10-19 11:36:19 +02:00
Jens Schauder
874a5e324a #418 - Replaced external Postgres DB with one created through TestContainers. 2018-10-02 13:57:55 +02:00
Mark Paluch
e02bfa5621 #416 - Upgrade to R2DBC 1.0 M5. 2018-09-24 10:44:31 -04:00
Mark Paluch
077353760e #416 - Polishing.
Convert spaces to tabs.
2018-09-24 10:44:28 -04:00
Mark Paluch
70729804b8 #415 - Adapt JDBC example to API changes in JdbcConfiguration. 2018-09-21 06:52:12 -04:00
Jens Schauder
fdca9980a9 #411 - Simplified example by using @Column instead of NamingStrategy. 2018-09-18 15:31:07 +02:00
Mark Paluch
ae0287ca5e #399 - Polishing.
Move Spring version override to Java 9+ build profile to allow test runs with Spring Boot 2.1 on Java 8.
2018-09-05 08:57:55 +02:00
Jens Schauder
f31c83a1f9 #399 - Depending on Spring Framework 5.0.9-BUILD SNAPSHOT.
With JDK 11 ApplicationListeners implemented as lambdas don't get correctly handled at the moment.
This is fixed for Spring Framework 5.0.9, which isn't released yet.

Therefore we depend for the JDBC examples on the snapshot.

An alternative would be to use proper classes instead of lambdas.

See also: SPR-17093.
2018-08-22 12:12:00 +02:00
Jens Schauder
d57068b410 #395 - Correcting handling of immutable properties.
If properties are final they need to have a matching argument in the persistence constructor or a matching "Wither".
Otherwise trying to set them results in an exception.

Id Properties additionally need a Wither if a generated Id from the database is supposed to get set.
2018-08-22 10:07:20 +02:00
Oliver Gierke
f6432092fa #395 - Correcting handling of immutable properties.
If properties are final they need to have a matching argument in the persistence constructor or a matching "Wither".
Otherwise trying to set them results in an exception.
2018-08-22 09:56:52 +02:00
Oliver Gierke
b155e9273d #394 - Upgrade to Lovelace RC2. 2018-08-20 12:07:20 +02:00
Jens Schauder
0e0668d12a #315 - Polishing.
Used default directory for code generation.
Formatting.
Simplified asserts with some AssertJ trickery.

Original pull request: #385.
2018-08-02 16:44:51 +02:00
Florian Lüdiger
b6b06121d1 #315 - Add example for Spring Data JDBC usage with jOOQ
Demonstrating how to use jOOQ as the basis for an implementation of custom repository methods.

Original pull request: #385.
2018-08-02 16:43:56 +02:00
Mark Paluch
e2d2bdf6bc #380 - Import JdbcConfiguration after EnableJdbcRepositories no longer provides the required beans. 2018-07-26 10:43:11 +02:00
Jens Schauder
7d9e4f82cf #380 - Adapt to changed API.
New CustomConversions API.
More limited access strategies introduced through the immutable support.
Fixed dependencies of the r2dbc example.
2018-07-25 10:34:18 +02:00
Oliver Gierke
b0bfdaeaee #379 - Reflect package changes in Spring Data JDBC. 2018-06-28 11:52:02 +02:00
Oliver Gierke
b13fad2649 #377 - Added example for Spring Data R2DBC. 2018-06-22 11:14:46 +02:00
Jens Schauder
0a9a8f4e60 #367 - Polishing.
Simplified the NamingStrategy by replacing parts of it with Table and Column annotations.
2018-05-24 09:42:48 +02:00
Jens Schauder
3248cda95c #367 - Fixes broken JDBC examples.
Adapted all SQL to new default NamingStrategy.

See also: DATAJDBC-207.
2018-05-24 09:30:46 +02:00
Jens Schauder
303e749ed4 #366 - Fixes compile errors due to DATAJDBC-137 and DATAJDBC-138. 2018-05-22 10:21:02 +02:00
Oliver Gierke
4ca4524227 #346 - Polishing. 2018-04-16 15:33:02 +02:00
Jens Schauder
68a15b0f5a #346 - Demonstrating the use of @Query with and without @Modifying.
Added assertions to existing tests to verify they work as intended.

Changed Model to a value object because we can.
2018-04-16 15:33:01 +02:00
Jens Schauder
2571c89af0 #354 - Fixes compile errors due to DATAJDBC-200. 2018-04-16 09:54:39 +02:00
Jens Schauder
05bc950a46 #351 - Fix and simplify DataAccessStrategy construction.
Removed explicit generation of DefaultDataAccessStrategy since that is now done by default.

Using MyBatisDataAccessStrategy factory for creating an appropriate DataAccessStrategy in the presence of MyBatis.

Removed references to DefaultNamingStrategy since that is now merged into NamingStrategy.
2018-03-28 11:24:03 +02:00
Oliver Gierke
fdb545fd18 #314 - Polishing.
Extracted MyBatis Boot Starter version int property in pom.xml. Removed unused code, more use of Lombok, formatting. Added new lines at end of files where missing.

Original pull request: #345.
2018-03-09 16:40:54 +01:00
Jens Schauder
047610df5f #314 - Added MyBatis example.
MyBatisTests demonstrates how some queries executed by Spring Data JDBC can be replaced with MyBatis mappings.
The domain model is based on the basic JDBC.

The map of models is maintained by two statements configured in MyBatis mappings.

example.springdata.jdbc.mybatis.LegoSetMapper.findAllByProperty-models showcases how a map can be loaded by configuring the select to return instances of Map.Entry

example.springdata.jdbc.mybatis.Model.insert showcases how one can access the MyBatixContext and thereby the instance to save and the key of the parent entity.

Original pull request: #345.
2018-03-09 16:35:23 +01:00
Oliver Gierke
7af58dea68 #343 - Added build profiles to allow running the examples agains Spring Data snapshots. 2018-02-27 13:35:57 +01:00
Oliver Gierke
74d947e951 #313 - Polishing.
Tweaking indentation in pom.xml to use tabs. Switch to upgrade to Spring Data release train Lovelace to simplify dependency declarations.

Import order. Copyright years. Formatting.

Original pull request: #324.
2018-02-22 13:41:01 +01:00
Jens Schauder
5d556d6d45 #313 - Added examples showing basic usage of Spring Data JDBC.
Original pull request: #324.
2018-02-22 13:40:58 +01:00