Commit Graph

51 Commits

Author SHA1 Message Date
Mark Paluch
b1ffd9cede #264 - Read MongoDB port from local.mongo.port.
Port handling for embedded MongoDB use has changed. Spring Boot no longer writes the port to MongoProperties but updates property sources to provide local.mongo.port so the reactive configuration is required to read local.mongo.port to obtain the port.
2017-03-06 11:29:37 +01:00
Mark Paluch
4bae471837 #254 - Use MongoProperties.getPort() to configure reactive MongoClient.
Embedded MongoDB auto-configuration randomizes its port. Configuration happens during the creation of embeddedMongoServer so our MongoClient creation must be delayed until then.
2017-01-27 13:58:07 +01:00
Oliver Gierke
1d3af17572 #226 - Polishing. 2017-01-27 12:52:17 +01:00
Mark Paluch
a138925b0d #226 - Add samples for new MongoDB aggregation operations in Ingalls. 2017-01-27 12:50:22 +01:00
Mark Paluch
c523b8d468 #245 - Upgrade to MongoDB Reactive Streams Driver 1.3.0. 2017-01-04 16:12:10 +01:00
Oliver Gierke
f3f8f79478 #215 - Upgraded reactive examples to Kay M1. 2016-11-23 11:01:21 +01:00
Oliver Gierke
00a4594764 #215 - Polishing.
Minor formatting, trailing whitespace etc.
2016-11-23 09:56:52 +01:00
Mark Paluch
20879e7fa3 #215 - Add reactive examples for MongoDB, Apache Cassandra and Redis. 2016-11-23 09:56:27 +01:00
Oliver Gierke
9ee13be9b5 #197 - Upgraded to Spring Boot 1.4 RC1.
Tweaked the output folder for Querydsl type generation to avoid running into a bug in the Maven compiler plugin 3.5.1 [0].

Fixed an issue in a sample script used to demonstrate MongoDB script execution as the new JavaScript engine seems to be more strict.

Switched to the MongoDB starter and excluded the legacy MongoDB Java driver from projects using Querydsl to consistently make use of the current driver only.

[0] https://issues.apache.org/jira/browse/MCOMPILER-271
2016-07-15 13:05:56 +02:00
Oliver Gierke
6684c8c69b #190 - More simplifications for Spring Boot 1.4 M3.
Replaced all occurrences of @SpringApplicationConfiguration with @SpringBootTest. Using SpringRunner instead of @SpringJUnit4ClassRunner now.
2016-06-10 21:26:46 +02:00
Oliver Gierke
24ca298de2 #193 - Added examples for using projections with pagination in JPA and MongoDB.
Requires an upgrade to snapshots as the JPA implementation is broken in Hopper SR1 but will be fixed in SR2 (Boot 1.4 RC1). Switched to use @SpringBootTest in test cases.
2016-06-02 12:55:15 +02:00
Mark Paluch
dc50706c27 #160 - Add excerpts for Query by Example. 2016-03-18 16:27:59 +01:00
Oliver Gierke
f8bfe5c79e #163 - Upgraded to Hopper RC1.
Removed all previous references to snpahosts. Removed explicit version declaration of Lombok as Boot sets that for us in 1.4.

Upgraded Elasticsearch dependency to 2.2 and uncommented the actual sample module as it needs to be updated due to API changes in Elasticsearch and Spring Data Elasticsearch in turn.

Adapt to API changes in entity lookup configuration for Spring Data REST.

Tweaked Neo4j build setup by using the dedicated embedded driver JAR.
2016-03-18 16:26:11 +01:00
Oliver Gierke
1f94bb12f1 #153 - Polishing.
Simplified domain model using Lombok. Moved configuration classes into test source folder.

Original pull request: #154.
2016-03-17 19:01:27 +01:00
Mark Paluch
beabdf8a79 #153 - Add examples for Query by Example functionality with JPA and MongoDB.
Original pull request: #154.
2016-03-17 19:01:23 +01:00
Oliver Gierke
99d1597756 #155 - Upgraded to Spring Boot 1.4 M1.
Switched to renamed Redis starter POM.

Removed invalid @Transactional annotation from projections example in MongoDB.

Added Mark Paluch as contributor in the root POM.
2016-02-27 12:30:31 +01:00
Oliver Gierke
9cb44b3166 #81 - Samples for new projection support for JPA and MongoDB. 2016-02-12 14:37:52 +01:00
Oliver Gierke
62b2d644cc Updated dependencies and codebase for Querydsl 4. 2016-02-12 14:36:49 +01:00
Oliver Gierke
9a5c270ec2 #139 - Switched to embedded MongoDB for integration tests.
Removed MongoDB dependency by adding Flapdoodle embedded MongoDB. That allows us to get rid of the utility module we had in place for the MongoDB samples guarding the tests to only run when a MongoDB instance is running.

Tweaked Travis setup to not require the MongoDB service anymore.
2015-10-29 17:14:38 +01:00
Oliver Gierke
0c1bee04b3 #128 - Upgraded to Spring Data Gosling GA.
Spring Boot 1.3.0 M2 -> 1.3.0 M4
Spring Framework 4.2.0 -> 4.2.1
2015-09-03 17:14:09 +02:00
Oliver Gierke
bca4e65e4f #115 - Harmonized package names.
We now consistently use example.springdata.$store as base package name.
2015-07-16 09:10:20 +02:00
Christoph Strobl
50cb4b9bba #58 - Add sample for usage of server-side JavaScript.
Use a server-side script to simulate putIfAbsent(…) as contracted by the Map interface. The operation will be atomic since MongoDB will put a lock on database until the script is finished.
2015-07-16 08:34:10 +02:00
Oliver Gierke
8d77a9a37e #107 - Polishing.
Switched to Asciidoc for README. Renamed ApplicationConfiguration to Application. Switched to a more simple package name. Some polishing in the test cases (removed unnecessary injections).

Original pull request: #108.
2015-07-16 08:24:43 +02:00
Thomas Darimont
d95ed268b2 #107 - Added example for Spring Security Integration in MongoDB.
Initial project and with example for dynamic data filtering based on current security context information.

Relies on DATAMONGO-1244 to be resolved.

Original pull request: #108.
2015-07-16 08:13:06 +02:00
golonzovsky
d624c8d43a #110 - Simplified RequiresMongoDB test rule.
We now extend ExternalResource instead of implementing TestRule to avoid the usage of the deprecated AssumptionViolatedException.
2015-06-29 17:54:00 +02:00
Oliver Gierke
8978423ade #75 - Polished pom.xml.
Fixed scope for test dependencies. Removed obsolete version property for the compiler plugin.
2015-04-08 18:57:17 +02:00
Oliver Gierke
6ba91231f2 #64 - Polishing.
Removed the additional GeoJsonModule and only register the mixin for GeoJsonPoint to be able to read the data from the source JSON file. Removed custom logging.

A bit of polish in the README, JavaDoc.
2015-03-10 14:07:05 +01:00
Christoph Strobl
35596a9045 #64 - Add example for GeoJSON usage in MongoDB.
Add sample to show usage of GeoJSON within domain types and repository query methods.
2015-03-10 13:57:25 +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
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
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
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
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
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
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
Oliver Gierke
56ab6b4705 Split up MongoDB example into two.
Split up the previously existing MongoDB example project in one for basic stuff, geo-spatial and Querydsl support as well as one on the aggregation framework. This will allow us to add other modules on particular focus areas going forward.
2014-07-31 15:03:13 +02:00
Oliver Gierke
a3a1db24d0 Upgraded to Spring Boot 1.1.0. 2014-06-16 17:03:58 +02:00
Oliver Gierke
c3afe35d2f Upgraded to Spring Data Dijkstra GA release. 2014-05-21 11:07:32 +02:00
Oliver Gierke
d5138bb3a4 Upgraded to latest Spring Data Dijkstra RC1. 2014-05-02 19:54:21 +02:00
Oliver Gierke
dadaf374c3 Use manual index declaration in MongoDB sample. 2014-04-02 10:08:41 +02:00
Oliver Gierke
87f91d8afc Upgraded to Spring Boot GA and Spring Data MongoDB 1.5 M1. 2014-04-02 10:06:25 +02:00
Oliver Gierke
87e8518bd2 Upgraded to latest dependencies.
Use latest stable Spring Data JPA release as well as Hibernate 4.3.4. Upgraded to Spring Boot 1.0 RC4, Querydsl 3.3.1 and Lombok 1.12.4. Upgraded to Spring Data MongoDB 1.5 snapshots to be able to use the geo-types from Spring Data Commons.
2014-03-11 12:27:43 +01:00
Oliver Gierke
2ca3aa159c Upgraded to Spring Boot 1.0 RC3.
Moved configuration classes to main folders. Removed previously required @Enable…Repositories annotations.
2014-02-14 18:59:52 +01:00
Oliver Gierke
5c48b25056 Changed top-level package to example.springdata.
Added missing Apache license headers and adapted copyright range.
2014-02-10 13:48:40 +01:00
Oliver Gierke
19db88ec06 Made dependency field final. 2014-02-05 09:07:06 +01:00
Oliver Gierke
21b8f01564 Tweak Querydsl APT plugin to produce less verbose output. 2014-02-05 09:06:46 +01:00