Commit Graph

331 Commits

Author SHA1 Message Date
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
Mark Paluch
c2858055a8 #323 - Add examples for Reactive Redis Template. 2017-11-28 12:02:56 +01:00
Mark Paluch
bd7b5e553b #265 - Add reactive examples.
Original pull request: #275.
2017-11-24 09:39:18 +01:00
Mark Paluch
b61875f97c #265 - Polishing.
Add license headers. Replace CouchbaseConfiguration with Spring Boot properties. Post-process example data to make it accessible for repository use. Fix Id type. Add examples for N1ql and view access.

Enable couchbase examples in parent pom.

Add test rule to skip tests if Couchbase is not available.

Original pull request: #275.
2017-11-23 14:10:57 +01:00
Chandana Kithalagama
5ba65308a7 #265 - Add example for Spring Data Couchbase.
Original pull request: #275.
2017-11-23 14:10:51 +01:00
Mark Paluch
4b648b1d50 #265 - Install and launch Couchbase on TravisCI.
We now install a Couchbase instance on TravisCI preinitialized with the Travel sample data set.

Original pull request: #275.
2017-11-23 14:09:14 +01:00
Ivan Sopov
ec94079b8f #321 - Fix Hibernate exclusion in EclipseLink sample.
Previously, the deprecated hibernate-entitymanager dependency was excluded but that was not taking effect, since current spring-boot-starter-data-jpa depends on hibernate-core.
2017-11-19 12:42:39 +01:00
Oliver Gierke
0e9e979c9a #319 - Upgrade to Spring Boot 2.0 M6.
Tweaked setup of in-memory user accounts in Spring Security example to accommodate the changes in Password encoding.

Tweaked Elasticsearch examples to use Log4j 2 instead of Logback as embedded Elasticsearch requires it to run properly.
2017-11-06 12:22:14 +01:00
Mark Paluch
96d1e7f7ca #318 - Polishing.
Rewrite test to AssertJ. Replace CharSet lookup with constant assignment. Typos.
2017-11-06 08:25:10 +01:00
Mark Paluch
fec9bb4729 #318 - Remove superfluous @EqualsAndHashCode annotation.
Address does not require to be annotated with @EqualsAndHashCode as these settings are inherited from @Data.
2017-11-06 08:19:37 +01:00
Mark Paluch
c32cedb97b #312 - Adapt reactive MongoDB example readme to changed @Tailable annotation.
Adapt also changed insertAll(…) signature to accept a Collection instead of a Flux.
2017-10-25 11:39:59 +02:00
Oliver Gierke
7bad34a7de #308 - Remove explicit Hibernate dependency handling. 2017-10-20 14:14:59 +02:00
Oliver Gierke
32ee5a11d5 #304 - Upgraded BOM sample to use Spring Framework 5 and Spring Data Kay. 2017-10-12 09:35:35 +02:00
Oliver Gierke
6fec7a5d0f #303 - Upgraded to Spring Boot 2.0 M5.
Removed Spring Framework 5 build profile as Boot 2.0 is based on that already. Removed obsolete custom property to use Spring Data Kay. Removed explicit declaration of the compiler plugin as Boot defaults to Java 8 and compiling with -parameters now.
2017-10-12 09:35:35 +02:00
Mark Paluch
5760555c57 #299 - Migrate Redis examples to Lettuce.
We now use Lettuce API instead of Jedis to align with Boot's driver choice.
2017-10-10 16:34:37 +02:00
Oliver Gierke
ffc33fcf92 #297 - Adapt to latest API changes in RxJava 2 in Cassandra module. 2017-10-06 18:24:58 +02:00
Oliver Gierke
562b95996b #276 - Changed Javaslang example to use Vavr instead.
Module renamed and switched to Vavr packages. Explicitly refer to the Kay snapshots as the Vavr support is not available in a Spring Data release yet.
2017-10-06 18:02:11 +02:00
Oliver Gierke
567da544b7 #297 - Fixed POM setup for 2.0. 2017-10-06 17:39:31 +02:00
Oliver Gierke
6f3dd29431 #297 - Re-enable Redis reactive example.
Removed fixed versions of dependencies. Removed explicit declaration of Lettuce version as it is now managed by Boot. Switched to Lettuce as primary Redis driver in application setup. We keep using Jedis in the embedded server support.
2017-10-06 17:30:36 +02:00
Oliver Gierke
d7fcdf5618 #297 - Updated README. 2017-10-06 15:48:31 +02:00
Mark Paluch
5c01c44130 #298 - Add JPA example for composable repositories. 2017-10-06 15:33:23 +02:00
Oliver Gierke
a0775f774b #297 - Removed fixing the version of Spring Security to 4.0 from REST samples. 2017-10-06 15:32:15 +02:00
Oliver Gierke
50945ac434 #297 - Upgraded to Thymeleaf Spring Data dialect compatible with Thymeleaf 3. 2017-10-06 15:32:08 +02:00