Commit Graph

66 Commits

Author SHA1 Message Date
Oliver Gierke
5b80a0b3c1 #263 - StoreRepository now correctly declares UUID as identifier type. 2017-03-06 08:38:37 +01:00
Mark Paluch
605b90dc56 #249 - Add example for Spring Data REST Cross-origin resource sharing. 2017-01-27 13:12:37 +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
2314c6e726 #186 - Prepare upgrade to Spring Boot 1.4 M2 and Hibernate 5.
Upgraded to Spring Boot 1.4 M2 and thus Hibernate 5.1 transitively.
Switched to H2 as database for all examples using JPA by accident as the
invalid error logging for HSQLDB schema creation got worse in 5.1 (see
[0]). The JPA examples themselves have to stay on HSQLDB as H2 doesn't
support stored procedures. The stored procedures example in turn has to
be downgraded to 5.0.7 as all following versions currently break stored
procedure execution support [1]. Reworked the JPA auditing example as
5.1 breaks on generic types used in support types like AbstractAuditable
[2].

Tweaked content type assertions in some REST related test cases as
Spring 4.3 returns an encoding alongside the media type.

[0] https://hibernate.atlassian.net/browse/HHH-10605
[1] https://hibernate.atlassian.net/browse/HHH-10515
[2] https://hibernate.atlassian.net/browse/HHH-10514
2016-04-13 18:11:09 +02:00
Oliver Gierke
b075ca6358 #177 - Polished domain model.
Inlined Address type into Store. Moved to @Value and removed code that got obsolete with that.

Removed custom WebConfig that's not needed anymore with Spring Boot.
2016-04-05 17:38:33 +02: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
62b2d644cc Updated dependencies and codebase for Querydsl 4. 2016-02-12 14:36:49 +01:00
Oliver Gierke
fe6e2172cd #144 - Make use of the dedicated configuration API for EntityLookups.
Rather than declaring a dedicated EntityLookup bean instance we now use the configuration API introduced on RepositoryRestConfiguration to define the identifier and lookup mapping.

Tweaked readme accordingly.
2015-12-09 16:10:02 +01:00
Oliver Gierke
0de282b2f2 #144 - Added sample for URI customization in Spring Data REST. 2015-12-09 13:01:21 +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
9a91c4073f #123 - Dependency polishing.
Configure the Spring HATEOAS version int the Spring Data REST sample root. Upgraded Spring Security to 4.0.2.RELEASE.
2015-08-04 18:10:43 +02:00
Oliver Gierke
bd90bd04d6 #124 - Added missing dependency to Querydsl MongoDB.
Apparently got lost during the merge.
2015-08-04 17:32:08 +02:00
Oliver Gierke
7eab65b53f #124 - Added Querydsl integration to Starbucks example.
Enabled Querydsl query metadata creation to the Starbucks example and added binding customizations to UserRepository.
2015-08-04 16:05:50 +02:00
Thomas Darimont
fbcded19e6 #120 - Added missing main method to Application in multi-store REST example.
Previously a mvn clean install in the Spring Data examples root failed because the Application class in the multi-store example was missing a main method that is required by the Spring Boot Maven plugin.
2015-08-01 20:52:46 +02:00
Oliver Gierke
70547a363b #117 - Removed explicit configuration of main class for Boot plugin in Starbucks example.
The configuration is obsolete as the client has been moved into a test case for a while already.
2015-07-30 11:38:20 +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
Oliver Gierke
cc6e232ac3 #114 - Upgraded to Spring 4.2 RC3.
Upgraded to Spring RESTDocs 1.0 M1 on the way.
2015-07-16 08:07:02 +02:00
Oliver Gierke
9641cb7f53 #113 - Upgraded to Spring Boot 1.3 M2.
Removed temporary upgrades to Spring Framework build snapshots where possible.
2015-07-15 09:49:50 +02:00
Oliver Gierke
3a138a161c #101 - Fixed security setup for REST / security sample. 2015-06-29 17:59:33 +02:00
Oliver Gierke
7f8a0cc9dc #111 - Stricter tests cases for conditional headers in REST sample.
We now explicitly check for the presence of ETag and Last-Modified headers for all requests.
2015-06-26 06:47:08 +02:00
Chris Beams
a666eae166 #103 - Fix typo in resource URIs. 2015-06-16 11:01:59 +02:00
Chris Beams
5e0d0da8f2 #102 - Add instruction to create mongodb data directory.
Running mongodb fails if the --dbpath directory does not yet exist. This change instructs the user to create the directory first.
2015-06-16 10:56:54 +02:00
Oliver Gierke
bb371b8de4 #99 - Upgraded to Spring Boot 1.3 M1.
Upgraded REST headers sample to Spring 4.2 snapshots to benefit from fix for SPR-13090.
2015-06-13 19:15:53 +02:00
Oliver Gierke
d880972a12 #98 - Switch to Spring 4.2 RC1 for Starbucks example. 2015-06-04 14:37:02 +02:00
Oliver Gierke
a5702d1e11 #96 - Upgraded to Spring Data Gosling M1. 2015-06-02 13:51:54 +02:00
Oliver Gierke
22824e6b24 #89 - Explicitly configured spherical index on Address.location in Starbucks sample. 2015-05-20 14:11:56 +02:00
Oliver Gierke
343d29eeec #87 - Cleanup view template. 2015-05-20 12:46:45 +02:00
Brian Clozel
cc2ac546e7 #87 - Fix WebJARs resource handling in Starbucks example. 2015-05-20 12:46:36 +02:00
Oliver Gierke
5f132037e3 #87 - Switched to version-less WebJARs after recent additions in Spring Framework. 2015-05-20 12:46:26 +02:00
Oliver Gierke
09eea9e0b8 #85 - Simplified usage of RestTemplate in StarbucksClient. 2015-05-18 10:13:57 +02:00
Oliver Gierke
43c0bcda98 #85 - Added a test case to show how to use a RestTempalte to interact with a HAL service. 2015-05-17 17:30:03 +02:00
Oliver Gierke
81b576b663 #84 - StarbucksClient now uses correct base URI. 2015-05-17 16:36:25 +02:00
Oliver Gierke
8ce6ac38c0 #83 - Enable web environment for integration test. 2015-05-12 12:22:55 +02:00
Oliver Gierke
19bb907815 #41 - Added minimal web UI for Starbucks example app.
Added a minimalistic HTML5 web front-end based on Thymeleaf, Bootstrap, jQuery, URI.js and Google Maps JavaScript API. The required JavaScript dependencies are referenced via Webjars.

For details see the README.

Original pull request: #47.
2015-04-14 21:42:13 +02:00
Oliver Gierke
b7263b4ed6 #76 - Added HAL browser to Spring Data REST Starbucks example. 2015-04-14 18:23:55 +02:00
Oliver Gierke
174710c5ba #74 - More documentation within the REST headers example.
Added README to give more details on what the sample actually showcases. Added Spring RESTDocs to document HTTP interaction.
2015-04-08 19:33:04 +02:00
Oliver Gierke
081881b538 #74 - Added sample for conditional GET requests with Spring Data REST. 2015-04-08 18:48:19 +02:00
Greg Turnquist
3e793a5147 #71 - Remove old SNAPSHOT reference. 2015-03-26 12:53:04 -05:00
Oliver Gierke
49d91bb697 #71 - Upgraded to Spring Security 4.0.
Upgraded security related sample projects in the rest and JPA sub-folders to Spring Security 4.0.
2015-03-26 18:38:16 +01:00
Oliver Gierke
3306ea56f3 Turned Starbucks client into test.
Allows us to benefit from default logging setup. Removed obsolete Tomcat version declaration. Polished StoreInitializer to use Lambdas instead of an enum.
2015-03-25 10:41:38 +01:00
Oliver Gierke
e11e73b58a #70 - Upgraded to Spring Data Fowler GA. 2015-03-23 16:21:44 +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
e47c4135fc #27 - Upgraded to Spring Security 4.0.0.RC1. 2014-12-12 08:33:55 +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