Commit Graph

106 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
02ee909aa7 #389 - Polishing.
Add author tags. Reformat code.

Original pull request: #412.
2018-09-19 15:50:52 +02:00
ade90036
2828e352fa #389 - Fix Cache eviction example.
Declare SpEL path to the key property on save(…) method accepting the entity.

Original pull request: #412.
2018-09-19 15:50:43 +02:00
Mark Paluch
04be1b9784 #408 - Remove Dev-Tools exclusions for multiple datasources.
Cleanup our examples as the issues that required exclusion are solved now.
2018-09-13 12:24:49 +02:00
Oliver Gierke
b155e9273d #394 - Upgrade to Lovelace RC2. 2018-08-20 12:07:20 +02:00
Oliver Gierke
4fe1ec39a2 #392 - Added example for deferred repository initialization. 2018-08-16 15:41:36 +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
Oliver Gierke
8b00fa0500 #374 - Re-enable Eclipselink tests on JDK 11.
Upgrade to EclipseLink 2.7.2-RC1 which seems to have fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=535774.
2018-06-26 12:29:07 +02:00
Oliver Gierke
679165603d #374 - Move profile activation into profile itself.
Removed the explicit activation of the JDK specific profile activation in the Travis config file in favor of a simple <activation /> element in the POM.
2018-06-12 10:07:30 +02:00
Oliver Gierke
1e40c91ed0 #374 - Disable tests for Eclipselink example on JDK 11. 2018-06-11 23:03:52 +02:00
Oliver Gierke
6653f260af #370 - Added example of how to use Vavr's Try.
Temporarily upgrade to Lovelace to make use of the new Try support
2018-05-30 23:12:44 +02:00
Mark Paluch
8b7869d0df #365 - Upgrade to Hibernate 5.3. 2018-05-17 16:17:24 +02:00
Mark Paluch
53dd062c98 #360 - Add TravisCI and Maven profiles for Java 9 build. 2018-05-16 15:11:27 +02:00
Oliver Gierke
7a31deb2d6 #330 - Polished README on JPA 2.1 examples for manual result set mappings. 2018-05-09 16:47:23 +02:00
Oliver Gierke
6a0f692e71 #330 - Added projection sample for how to avoid dedicated SQL result set mappings.
Upgraded to Kay snapshots as the sampler needs some tweaks that have not made it into a released version yet.
2018-05-09 16:23:38 +02:00
Thomas Darimont
ad2b77e7ee #330 - Demonstrate usage of JPA 2.1 @SqlResultSetMapping.
Sometimes, e.g. for analytics, it is handy to be able to return a different entity result type from a Repository query method than the base Repository entity type or an interface based projection.

This demonstrates how to use a custom @SqlResultSetMapping in combination with @ColumnResult introduced in JPA 2.1.
2018-05-09 16:22:09 +02:00
Oliver Gierke
7af58dea68 #343 - Added build profiles to allow running the examples agains Spring Data snapshots. 2018-02-27 13:35:57 +01:00
Oliver Gierke
9c2164ece6 #341 - Reduced log output for build execution.
Make sure test that previously used @SpringBootApplication now use @SpringBootTest to properly initialize Boot's default logging configuration.

Added explicit logback.xml to make sure tests running without Boot don't use debug logging by default.
2018-02-22 11:48:36 +01:00
Oliver Gierke
d854c6d084 #342 - Expanded copyright headers to 2018.
Removed trailing whitespace in touched files.
2018-02-22 11:42:57 +01:00
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