288 Commits

Author SHA1 Message Date
Thomas Darimont
f5e6b3b6be #62 - Add example for Java 8 Streams in JPA.
This example demonstrates streaming of results in JPA.

Original pull request: #63.
2015-03-09 12:53:43 +01:00
Oliver Gierke
49df9468b5 #54 - Use Stream with try-with-resources.
Tweaked the integration test to use the Stream returned by the repository within a try-with-resources clause so that it gets closed correctly.
2015-03-09 12:53:43 +01:00
Oliver Gierke
966d3c9e44 #59 - Upgraded to Spring Data Fowler RC1. 2015-03-09 12:53:42 +01:00
Oliver Gierke
a865425657 #45 - Polished POM for JPA Java 8 module. 2015-03-09 12:53:42 +01:00
Thomas Darimont
73be2fcddb #54 - Added a project for MongoDB examples using Java 8 features.
This initial version of the example projects demonstrates the usage and mapping behavior of Java 8 Streams in repositories. The test cases oppose a plain List based query method with one that uses a Stream and shows how the former pulls all data into memory first and the iteration is done over the pre-populated list. The execution of the Stream based method in contrast shows that the individual elements are read and converted while iterating the stream.
2015-03-09 12:53:39 +01:00
Oliver Gierke
6597d7ca95 #56 - Upgraded to spring HATEOAS 0.17 snapshots.
Simplified usage of ParameterizedTypeReference through newly introduced TypeReferences class. Moved to Java 8 streams for final output.
2015-03-02 23:00:44 +01:00
Oliver Gierke
797db3eece #53 - Enable -parameters for compilation.
Removed obsolete @Param annotations from repository interfaces. Upgraded to Fowler snapshots for JPA 2.1 examples as we need a fix in derived stored procedure execution to work correctly.

Related issues: DATAJPA-681.
2015-02-27 19:26:37 +01:00
Oliver Gierke
a50a3450cd #52 - Upgraded to Spring Boot 1.2.2. 2015-02-27 07:57:40 +01:00
Oliver Gierke
815e3b7266 #51 - Upgraded dependencies.
Maven APT Plugin - 1.1.2 -> 1.1.3
Querydsl - 3.6.0 -> 3.6.1
Spring Framework - 4.1.4 -> 4.1.5
Lombok - 1.14.8 -> 1.16.2
2015-02-22 14:17:23 +01:00
Oliver Gierke
f37e260a32 #48 - Upgraded to Spring Boot 1.2.1. 2015-01-08 09:43:16 +01:00
Oliver Gierke
0abc0dc3b1 #45 - Adapt to type moves of JSR-310 attribute converters. 2015-01-08 09:42:29 +01:00
Artur Konczak
f9aa1556d8 #28 - Added example for Spring Data Elasticsearch.
Added basic example to show repository and ElasticsearchOperations usage.
2015-01-04 18:40:55 +01:00
Oliver Gierke
7f3339a610 #45 - Removed Jadira user types in favor of new JPA 2.1 AttributeConverters.
We now activate the JSR-310 AttributeConverters shipped with Spring Data JPA 1.8. Removed the dependency to Jadira user types and switch to non-time-zoned Java 8 LocalDateTime.

Original pull request: #46.
2015-01-04 18:09:14 +01:00
Oliver Gierke
e953f6d5e5 #45 - Temporarily add required Spring Data JPA dependencies. 2014-12-30 19:19:35 +01:00
Oliver Gierke
d248a5ffd8 #43 - Moved to new Travis infrastructure. 2014-12-12 08:49:16 +01:00
Oliver Gierke
d7aba90879 #42 - Switched to snapshot repository. 2014-12-12 08:49:16 +01:00
Oliver Gierke
e47c4135fc #27 - Upgraded to Spring Security 4.0.0.RC1. 2014-12-12 08:33:55 +01:00
Oliver Gierke
5d102f9157 #32 - Upgraded to Spring Boot 1.2.0.RELEASE. 2014-12-12 08:33:55 +01:00
Eddú Meléndez
30386210c4 #39 - Added example of SpEL usage in manually defined JPA queries. 2014-12-05 20:10:02 +01:00
Oliver Gierke
a579f6e879 #35 - Added example for Map-based repositories. 2014-12-05 19:51:37 +01:00
Oliver Gierke
c30d5827a9 #38 - Removed @WebAppConfiguration to prevent web infrastructure to be bootstrapped. 2014-12-01 19:32:24 +01:00
Oliver Gierke
b15b1390ac #37 - Upgrade to Spring Data release train Fowler M1. 2014-12-01 13:33:58 +01:00
Oliver Gierke
ca5fd354b6 #29 - Fixed setup of Spring Boot Maven plugin.
Removed the declaration of the Spring Boot Maven plugin in the root POM as it broke the build for package and install goals for projects that don't actually contain a main class but tests only.

Declared the plugin at the root POM for Spring Data REST related projects as these are the only ones providing a standalone runnable app.

Related pull request: #30.
2014-11-12 09:39:37 +01:00
Oliver Gierke
7d034f84a7 #31 - Updated dependencies.
- Spring Boot 1.1.8 -> 1.1.9
- Querydsl 3.4.3 -> 3.5.1
- Spring 4.1.0 -> 4.1.2
- Spring Data Releasetrain Evans GA -> Evans SR1
- Lombok 1.14.6 -> 1.14.8
- Tomcat 8.0.9 -> 8.0.15
2014-11-12 09:39:37 +01:00
Thomas Darimont
4841bbdc11 #19 - Add example for Spring Data Cassandra.
Shows java-config as well as Repository configuration.
2014-11-01 17:06:25 +01:00
Oliver Gierke
eeb0485cf9 #26 - Upgrade to Spring Boot 1.1.8. 2014-10-27 15:54:59 +01:00
Greg Turnquist
4bcdb26b10 #24 - Add Spring Boot Maven-plugin to root pom.xml.
Also upgrade to Spring Boot 1.1.8.RELEASE.

Original pull request: #25.
2014-10-27 15:54:55 +01:00
Greg Turnquist
4b2ec72569 #23 - Fixed typo and styling in security example.
Fix typo in link to Spring Security reference documentation and the bold type face of ROLE_ADMIN.
2014-10-27 15:10:16 +01:00
Oliver Gierke
97963961ab #21 - Updated REST/Security and root readme. 2014-10-17 10:43:29 +02:00
Oliver Gierke
1d7554b57a #21 - Polished Spring Data REST + Spring Security example.
Removed obsolete dependency declarations from pom.xml. Rewrote test cases to use Spring MVC test support instead of a running server and RestTemplate. Fixed Security configuration to allow bootstrap in Spring MVC test context. Formatting, JavaDoc.

Original pull request: #22.
2014-10-17 10:17:17 +02:00
Greg Turnquist
c5920a64d9 #21 - Added example for Spring Data REST and Spring Security.
Added example of how to secure a Spring Data REST project with Spring Security both on the method level as well as the URI level.

Original pull request: #22.
2014-10-17 10:16:59 +02:00
Thomas Darimont
f4266ac211 #15 - Added example for top/first keywords in repository methods. 2014-09-09 11:25:09 -05:00
Christoph Strobl
5af654a12a #5 - Add sample for Slice usage.
Original pull request: #17.
2014-09-09 11:05:38 -05:00
Oliver Gierke
11a6e4b693 #7 - Added sample for Spring Data REST ALPS support and excerpt projections. 2014-09-09 10:30:21 -05:00
Christoph Strobl
f625317445 #8 - Switch to local source data for text search.
Remove online resources and just rely on local data. Though we had to keep the BlogPostInitializer for setting up the tests only using the template without repository support.

Original pull request: #18.
2014-09-09 09:51:12 -05:00
Christoph Strobl
de7c2c5522 #6 - Add samples for Spring Data Solr.
Added sample using deep pagination with cursor and one for managed schema support. Added JUnit rule checking that Solr is up and running.

Original pull request: #12.
2014-09-09 09:35:40 -05:00
Christoph Strobl
91565e3e21 #3 - Added samples for Spring Data Redis.
We added basic samples showing KEYS and SCAN command as well as configuration options for Redis Sentinel.

Original pull request: #9.
2014-09-09 09:19:40 -05:00
Oliver Gierke
7cfd45920f Upgraded to Spring Boot 1.1.6 and Spring Data Evans GA. 2014-09-05 18:11:34 +02:00
Oliver Gierke
8ebc3d85fb Added image link for build status on Travis. 2014-09-04 14:43:25 +02:00
Oliver Gierke
3bb508292a Upgrade to Spring 4.1.
Switched to Rome 1.5 for MongoDB text search example as that's needed after the Spring 4.1 upgrade.
2014-09-04 14:31:15 +02:00
Oliver Gierke
c395f5ae3e Upgraded to Maven APT Plugin 1.1.2 and Querydsl 3.4.3.
Added Christoph as project maintainer, too. Fixed maintainer's email addresses. Removed obsolete encoding property. Upgraded to Lombok 1.14.6. Switched to simplified Java 8 setup (using the property instead of a plugin declaration).
2014-09-04 14:31:15 +02:00
Thomas Darimont
e17b24b692 Added custom class rule to cope with mongo versions that don't support text-search.
TestSearch is only supported from MongoDB 2.6 but travis CI uses an older version at the moment.
2014-09-04 14:28:25 +02:00
Thomas Darimont
cba9500e47 Fix failing MongoDB exposesGeoSpatialFunctionality test case for travis.
Make distance check in exposesGeoSpatialFunctionality test case more robust against 
minor numeric differences. Travis CI seems to use an older Mongo DB version that produces a slightly different result than what we get.
2014-09-04 13:43:54 +02:00
Christoph Strobl
caf5ba4edc #5 - Add sample for derived deleteBy.
Original pull request: #14.
2014-09-03 14:46:17 +02:00
Christoph Strobl
6fb5259e37 #8 - Add sample for @Meta usage.
Renamed the geo-spatial example to example only as it not only covers geo-spatial samples. Added advanced example to show the usage of the @Meta annotation.

Original pull request: #11.
2014-09-02 17:39:30 +02:00
Oliver Gierke
ecadc65483 #8 - Some polishing of the example.
Introduced the usage of Lombok to be able to get rid off the getters and setters. Simplified the configuration to use Spring Boot's auto-configuration. The initializer is now an enum manually triggered with a MongoOperations instance. Switched from MongoTemplate to MongoOperations where possible. Polished some JavaDoc.

Original pull request: #10.
2014-09-02 10:20:43 +02:00
Christoph Strobl
09317bc6de #8 - Add MongoDB text search example.
The sample reads the Spring IO blog Atom feed and performs text search on it.

We use manual index creation and query via MongoTemplate as well as automatic index creation and derived queries via repositories.

Original pull request: #10.
2014-09-02 10:20:22 +02:00
Oliver Gierke
4246700be0 Added Travis build configuration. 2014-09-01 12:45:04 +02:00
Oliver Gierke
7473831b41 Upgraded to Spring Data Evans RC1.
Move to Java 8 entirely.
2014-08-13 18:14:17 +02:00
Oliver Gierke
5ff523973f Upgraded to Spring Boot 1.1.5.RELEASE.
Upgraded to Querydsl 3.4.2. Fixed name of the MongoDB Geospatial project.
2014-08-12 15:29:26 +02:00