Commit Graph

353 Commits

Author SHA1 Message Date
Oliver Gierke
b0bfdaeaee #379 - Reflect package changes in Spring Data JDBC. 2018-06-28 11:52:02 +02:00
Oliver Gierke
8b00fa0500 #374 - Re-enable Eclipselink tests on JDK 11.
Upgrade to EclipseLink 2.7.2-RC1 which seems to have fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=535774.
2018-06-26 12:29:07 +02:00
Oliver Gierke
b13fad2649 #377 - Added example for Spring Data R2DBC. 2018-06-22 11:14:46 +02:00
Oliver Gierke
0e0de619fa #376 - Upgrade to Lombok 1.18.0.
Removed custom Travis build steps that were necessary to use a JDK 11 compatible edge version.
2018-06-20 16:50:11 +02:00
Oliver Gierke
203032ccff #373 - Upgrade to Spring Boot 2.0.3. 2018-06-20 16:47:13 +02:00
Oliver Gierke
679165603d #374 - Move profile activation into profile itself.
Removed the explicit activation of the JDK specific profile activation in the Travis config file in favor of a simple <activation /> element in the POM.
2018-06-12 10:07:30 +02:00
Oliver Gierke
1e40c91ed0 #374 - Disable tests for Eclipselink example on JDK 11. 2018-06-11 23:03:52 +02:00
Oliver Gierke
50d47183af #373 - Temporarily Elasticsearch samples to Kay snapshots.
This is to verify the fix for DATAES-460.
2018-06-11 15:59:08 +02:00
Oliver Gierke
0dffecc18f #371 - Fixed link to Vavr website. 2018-05-31 10:57:53 +02:00
Oliver Gierke
6653f260af #370 - Added example of how to use Vavr's Try.
Temporarily upgrade to Lovelace to make use of the new Try support
2018-05-30 23:12:44 +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
Mark Paluch
8b7869d0df #365 - Upgrade to Hibernate 5.3. 2018-05-17 16:17:24 +02:00
Mark Paluch
7df0eb5b3d #364 - Add Travis CI build for Java 11. 2018-05-17 16:16:39 +02:00
Mark Paluch
5e108d35da #337 - Polishing.
Use blocking queue for imperative synchronization to not depend on the actual machine timing. Refactor reactive API example to use StepVerifier.

Reuse embedded MongoDB utility.
2018-05-17 15:51:54 +02:00
Christoph Strobl
2474846281 #337 - Add sample for MongoDB 3.6 Change Streams. 2018-05-17 15:51:41 +02:00
Mark Paluch
e1cc43e1ca #361 - Polishing.
Move EmbeddedMongo to utils module. Inline MongosSystemForTestFactory to control process output. Add Javadoc.
2018-05-17 15:33:48 +02:00
Christoph Strobl
9025621335 #361 - Add example for MongoDB 4.0 transactions. 2018-05-17 15:33:39 +02:00
Mark Paluch
9059adc815 #363 - Upgrade preview build profile to Lovelace M3. 2018-05-17 14:15:19 +02:00
Mark Paluch
9f6afe4929 #362 - Add Travis CI build for Java 10. 2018-05-17 14:12:07 +02:00
Mark Paluch
74e4d864ee #218 - Polishing.
Simplify Customer type using Lombok. Move test code from GridFsApplication to GridFsTests. Split tests into methods. Remove superfluous files.

Original pull request: #229.
2018-05-16 15:43:43 +02:00
Hartmut Lang
2c46c8c8bd #218 - Add GridFS example for Spring Data MongoDB.
Original pull request: #229.
2018-05-16 15:43:43 +02:00
Mark Paluch
53dd062c98 #360 - Add TravisCI and Maven profiles for Java 9 build. 2018-05-16 15:11:27 +02:00
Oliver Gierke
e99a59d0a9 #358 - Upgraded to Spring Boot 2.0.2. 2018-05-09 17:38:59 +02:00
Oliver Gierke
7a31deb2d6 #330 - Polished README on JPA 2.1 examples for manual result set mappings. 2018-05-09 16:47:23 +02:00
Oliver Gierke
6a0f692e71 #330 - Added projection sample for how to avoid dedicated SQL result set mappings.
Upgraded to Kay snapshots as the sampler needs some tweaks that have not made it into a released version yet.
2018-05-09 16:23:38 +02:00
Thomas Darimont
ad2b77e7ee #330 - Demonstrate usage of JPA 2.1 @SqlResultSetMapping.
Sometimes, e.g. for analytics, it is handy to be able to return a different entity result type from a Repository query method than the base Repository entity type or an interface based projection.

This demonstrates how to use a custom @SqlResultSetMapping in combination with @ColumnResult introduced in JPA 2.1.
2018-05-09 16:22:09 +02:00
Oliver Gierke
d3519f8f11 #355 - Update preview build profile to Lovelace M2. 2018-04-16 15:37:42 +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
Mark Paluch
8884d98971 #344 - Upgrade to Spring Boot 2.0 GA. 2018-03-01 16:41:29 +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
Oliver Gierke
9c2164ece6 #341 - Reduced log output for build execution.
Make sure test that previously used @SpringBootApplication now use @SpringBootTest to properly initialize Boot's default logging configuration.

Added explicit logback.xml to make sure tests running without Boot don't use debug logging by default.
2018-02-22 11:48:36 +01:00
Oliver Gierke
d854c6d084 #342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
2018-02-22 11:42:57 +01:00
Oliver Gierke
20c910183e #339 - Upgrade to Spring Boot 2.0 RC2. 2018-02-21 18:35:06 +01:00
Mark Paluch
8eebca96d3 #335 - Adapt to Spring Boot 2.0 snapshots.
Exclude SecurityAutoConfiguration via application.properties as class was moved across packages. Add lombok.config to add @ConstructorProperties to Redis JSON objects.
2018-01-23 11:29:28 +01:00
Mark Paluch
69c2c2aef4 #266 - Refactor reactive tests to use StepVerifier and test methods.
We now use StepVerifier and RxJava's .test() methods instead of .block() calls. Using blocking methods is an anti pattern which should be avoided within tests. Test API comes with timeouts and protects tests from never completing.
2017-11-30 18:03:51 -08:00
Mark Paluch
a2f963df14 #328 - Fix reactive MongoDB tailable cursor examples.
Replace flatMap(…) operator after collection drop with then(…) to create the collection regardless of whether the previous operation emitted an element or not.

Collect emitted elements to add an assertion and fail if the tailing does not work.
2017-11-30 17:18:10 -08:00
Mark Paluch
627a08b02b #327 - Polishing.
Add comment to configured bean.
2017-11-30 15:04:42 -08:00
Mark Paluch
19cf463305 #327 - Add Jackson example for Reactive Redis use. 2017-11-30 15:03:49 -08:00
Mark Paluch
b3d8749273 #326 - Extend CORS examples.
Add examples for preflight- and rejected requests.
2017-11-30 14:19:45 -08:00
Mark Paluch
674c4e904c #325 - Upgrade to Spring Boot 2.0 M7.
Tweak bom to reflect Spring Framework and Spring Data versions.

Remove reactive Couchbase configuration code required prior to Spring Boot 2.0 M7.

Tweak CORS examples to adapt to Spring Framework's disabled allowCredentials by default.
2017-11-30 14:15:09 -08:00
Mark Paluch
3d19c67d0a #323 - Polishing.
Rename KeyOperationsTests to KeyCommandsTests to align with naming on connection level.
2017-11-28 12:02:56 +01:00