Commit Graph

79 Commits

Author SHA1 Message Date
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
Mark Paluch
445947db52 #414 - Skip MongoDB ChangeStreams tests if MongoDB cannot be started. 2018-09-19 15:38:51 +02:00
Mark Paluch
97eb95d3c9 Pin Kotlin MongoDB example to Kay snapshots. 2018-09-18 19:11:33 +02:00
Mark Paluch
2224264499 Add Kotlin example for Spring Data MongoDB. 2018-09-18 19:11:33 +02:00
Mark Paluch
9b88ae9a38 #405 - Polishing.
Slight readme tweaks. Override flapdoodle version using the version property.
2018-09-13 13:36:49 +02:00
Christoph Strobl
9520ac6a75 #405 - Add Example for MongoDB Schema & Validation. 2018-09-13 13:36:46 +02:00
Mark Paluch
eb1add7da3 #391 - Upgrade to Reactor Californium M1 for Reactive Tx tests.
Specify dependency to use the Flux.usingWhen(…) factory.
2018-08-15 14:07:23 +02:00
Mark Paluch
cc3c595ec4 #391 - Assert compatibility with Lovelace RC1.
Upgrade from Lovelace M3 to Lovelace RC1 for examples requiring Lovelace. Upgrade to latest stable MongoDB drivers. Adapt to API changes. Un-pin examples that were previously bound to Spring Data Kay.
2018-08-14 15:46:55 +02:00
Mark Paluch
3a4a9d27b2 #382 - Adapt examples to Spring Boot 2.1 changes.
Replace custom configuration with the one that Boot provides. Adapt to DataMongo configuration that requires a MongoClient bean.
2018-07-26 11:57:11 +02:00
Mark Paluch
1c56cf8fba #381 - Adapt examples to immutable object support.
Provide mutable property accessors to allow object mutation.
2018-07-26 11:57:09 +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
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
Oliver Gierke
d854c6d084 #342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
2018-02-22 11:42:57 +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
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
567da544b7 #297 - Fixed POM setup for 2.0. 2017-10-06 17:39:31 +02:00
Oliver Gierke
42a27837a0 #297 - Adapt to latest API changes in Reactor 3.1 RC1 and Spring Data MongoDB. 2017-10-06 15:31:12 +02:00
Christoph Strobl
e7123f2647 #297 - Add sample for fluent MongoDB API. 2017-10-06 15:30:10 +02:00
Christoph Strobl
7a557bfd72 #297 - Move MongoDB example from RxJava1 to RxJava2. 2017-10-06 15:29:28 +02:00
Oliver Gierke
b87336ba8f #297 - Update to changes in ExampleMatcher API. 2017-10-06 15:29:07 +02:00
Jens Schauder
80b70e6bd2 #297 - Fixed failing test due to repository methods now returning Optional.
Also migrated Tests to AssertJ. Fixed compilation failure due to changed API of CollectionOptions
2017-10-06 15:26:40 +02:00
Oliver Gierke
4164bc4607 #297 - Upgraded to Boot 2.0 and Spring Data Kay.
Bumped version number to 2.0. Upgraded to Spring Boot 2.0.

Stuff disabled in the meantime:

- Cassandra: needs API adaptions in configuration
- JPA > Security: test fails with weird Hibernate error
- Redis > Reactive: API updates needed
- Solr: configration updates necessary

adjust versions

Updated elastic search to the new version.

Fixed the reactor version to Bismuth-BUILD-SNAPSHOT. This probably should be undone when boot references the proper bom.
2017-10-06 15:15:53 +02:00
Oliver Gierke
663c8bd73b #290 - Removed obsolete @Autowired annotations. 2017-08-24 11:54:24 +02:00
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