Commit Graph

87 Commits

Author SHA1 Message Date
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
7bad34a7de #308 - Remove explicit Hibernate dependency handling. 2017-10-20 14:14:59 +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
Mark Paluch
5c01c44130 #298 - Add JPA example for composable repositories. 2017-10-06 15:33:23 +02:00
Oliver Gierke
b87336ba8f #297 - Update to changes in ExampleMatcher API. 2017-10-06 15:29:07 +02:00
Jens Schauder
20f6963927 #297 - Fixed failing test due to repository methods now returning Optional.
Also migrated Tests to AssertJ.
2017-10-06 15:24:50 +02:00
Oliver Gierke
5d34f0a00d #297 - Tweaked persistence context handling in security tests.
The modifying query now clears the EntityManager so that the changes are really flushed to the database. This is necessary as Boot 2.0 flips the default for Hibernate's new identifier mappings which causes entities less aggressively being flushed and the previously used detach apparently removing them from the persistence context without ever making it to the database.
2017-10-06 15:15:55 +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
013058d410 #290 - Polishing.
Imports and typos in JavaDoc.
2017-08-24 11:54:24 +02:00
Oliver Gierke
663c8bd73b #290 - Removed obsolete @Autowired annotations. 2017-08-24 11:54:24 +02:00
Oliver Gierke
7870a7e060 #278 - Fix entity characteristics in Customer in Eclipselink example.
We now calculate the equals(…) and hashCode() methods by looking at the indentifier only. Removed default constructor in favor of Lombok's @NoArgConstructor.
2017-06-19 09:51:03 +02:00
Oliver Gierke
dbb13f831f #273 - Upgraded to Spring Boot 1.5.3.
Removed manually declared bean for Spring Security's EvaluationContextExtension.
2017-05-04 21:58:06 +02:00
Oliver Gierke
4cf37f3527 #252 - Upgraded to Spring Boot 1.5 snapshots (and thus Ingalls).
Let JPA examples work with latest Hibernate (5.2.7).
2017-01-27 12:35:55 +01:00
Mark Paluch
ba829655f2 #244 - Adopt changed constructor for JpaBaseConfiguration. 2017-01-04 15:56:24 +01:00
Oliver Gierke
be2c0b298c #237 - Upgraded to latest JPA providers.
Eclipselink 2.6.0 -> 2.6.4
Hibernate 5.2.1 -> 5.2.5 (was 5.0 in some places before)
2016-12-15 20:58:10 +01:00
Oliver Gierke
6709a6137f #236 - Removed obsolete Logback configuration files. 2016-12-15 20:56:48 +01:00
Oliver Gierke
1ddfd03d84 #232 - Added example to show JPA stream executions are rejected without surrounding transaction. 2016-12-14 15:36:24 +01:00
Oliver Gierke
cd36f6f0da #231 - Added example for Javaslang support on repositories.
Added an example that shows how Javaslang's collection types and Option can be used as repository query methods starting with Spring Data Ingalls RC1.
2016-12-14 14:05:38 +01:00
Oliver Gierke
17296a6b30 #210 - Switched to annotation based registration of entity listeners. 2016-09-28 19:07:31 +02:00
Oliver Gierke
34fe9d2720 #206 - Added more projection examples in JPA.
Added another one that shows projections can be wrapped into an Optional.
2016-08-17 15:36:04 +02:00
Oliver Gierke
0f7afacafc #204 - Upgraded to Spring Boot 1.4 GA. 2016-07-28 18:09:18 +02:00
Oliver Gierke
15e8ba31cc #201 - Added example for constructor expression in JPA projections. 2016-07-27 15:08:03 +02: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
5bb1b8b77c #195 - Make JPA examples work with Hibernate 5.2.
Upgrade to Hibernate 5.2.1 and Spring Framework 4.3 to pull in the necessary tweaks to let the latter work with the former.

Excluded hibernate-entitymanager and refer to hibernate-core instead as the 5.2 release has merged the artifacts and the former is not available anymore.

The project showing the stored procedure support still needs to stay on Hibernate 5.0.7 because the stored procedure support on HSQLDB has been broken since 5.0.8. The original issue [0] has been fixed but running the module on 5.2.1 now runs into a NullPointerException from AbstractProducedQuery [1].

[0] https://hibernate.atlassian.net/browse/HHH-10515
[1] https://hibernate.atlassian.net/browse/HHH-10915
2016-07-01 12:33:01 +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
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
4cc558e42e #179 - Fixed build for multiple-datasources module after Spring Boot 1.4 upgrade.
We now explicitly disable DevToolsDataSourceAutoConfiguration as it currently expects exactly one DataSource being present.

Switched to Spring's @Transactional instead of the javax.transactional one.
2016-04-05 17:50:53 +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
Franziska Sauerwein
1fe9aaeefa #157 - Fix Typo in readme.
Two -> To
2016-03-04 07:50:26 +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
Svante Kumlien
5a9b785499 #135 - Fixed some typos in readmes. 2015-10-15 09:15:41 +02:00
Oliver Gierke
d9dfb81e12 #134 - Added example for using Optional as query method parameter.
Got rid of Guava dependency in favor of JDK 8's Optional. Upgraded basic JPA example to Spring Data Hopper to get access to the newly introduced functionality.
2015-10-07 19:50:49 +02: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
9bb284fc84 #119 - Polishing.
Changed the update clause to set the the entire principal the reflect a domain object design that's closer to what might be set up if Spring Data auditing is used, too.

Made use of Lombok in the domain objects where possible. Reduced visibility of repository interfaces to package scope. Minor test case cleanups.
2015-08-01 21:08:38 +02:00
Thomas Darimont
50faabb2af #119 - Added example for use of SpEL expressions in JPQL update statements. 2015-08-01 21:06:46 +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
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
Thomas Darimont
8037e4d157 #106 - Add CompletableFuture example to readme. 2015-06-18 14:38:25 +02:00
Oliver Gierke
8ed43d34fc #106 - Polishing.
Some JavaDoc improvements, copyright headers. Using a logger instead of System.out in the test case now. Removed commented out dependency declaration from JPA pom.xml.
2015-06-18 14:23:29 +02:00
Thomas Darimont
fd7d35a826 #106 - Add example with CompletableFuture and Java 8 for JPA.
Simple test case that demonstrates CompletableFuture.

Original pull request: #106.
2015-06-18 14:12:55 +02:00
Thomas Darimont
98bfe34996 #105 - Added example for filtering data solely on Role in jpa-security sample.
Added example for dynamic filtering in query solely based on the current principals role.
2015-06-17 12:26:29 +02:00
Thomas Darimont
6a57cef345 #104 - Fix jpa eclipselink example build.
Added main method to eclipselink JPA example to prevent “Unable to find main class” error from spring-boot repacking during build.
2015-06-17 12:13:23 +02:00
Oliver Gierke
3f7616367c #93 - Switched to RowMapper for Spring 4.2 compatibility.
ParameterizedRowMapper has been deprecated for a while and finally removed in Spring 4.2. We now use the simple parameterized RowMapper interface.
2015-06-02 07:53:50 +02:00
Oliver Gierke
b8e29431de #73 - Added example how to customize all Spring Data repositories. 2015-05-05 18:08:10 +02:00