Commit Graph

146 Commits

Author SHA1 Message Date
Mark Paluch
e90be0c65b Add examples using Virtual Threads.
Closes #665
2023-10-27 11:01:21 +02:00
Mark Paluch
ffadb798e9 Disable multi-tenant test as Hibernate broke the by-id functionality.
See #669
2023-10-25 14:30:38 +02:00
Oliver Drotbohm
321e3e9b88 Upgrade to Spring Boot 3.1.2. 2023-07-22 10:22:36 +02:00
Mark Paluch
b21a6647ae Polishing.
Add WindowIterator example.

See #662
2023-05-15 11:48:28 +02:00
Christoph Strobl
1b8872abce Add scrolling sample for JPA.
Closes #662
2023-05-15 11:48:28 +02:00
Mark Paluch
1065f4d5ed Upgrade to Spring Boot 3.0 GA.
Closes #654
2022-12-12 11:16:34 +01:00
Mark Paluch
3f938634d9 Polishing.
Cleanup superfluous declarations.

See #654
2022-12-12 11:16:31 +01:00
Christoph Strobl
5af0cb7983 Add native jpa sample.
See #654
2022-12-12 11:16:19 +01:00
Christoph Strobl
d52d73f34c Upgrade to Spring 6 and Spring Boot 3.
See #654
2022-12-12 11:15:36 +01:00
Greg L. Turnquist
e2b388e6b9 Remove workaround for https://hibernate.atlassian.net/browse/HHH-15142.
Hibernate 5.6.9.Final resolves this issue, removing the need for the workaround.

Related: https://github.com/spring-projects/spring-data-jpa/issues/2519, https://github.com/spring-projects/spring-data-jpa/issues/2583
2022-09-29 12:13:52 -05:00
Jens Schauder
c3ed1277e7 Adds examples of Spring Data JPA with Hibernate Multitenancy. 2022-08-01 10:46:06 +02:00
Marc Wrobel
ce994f9ea0 Fix typos in documentations.
Fix typos in READMEs, javadoc, comments and code.

Original pull request #642
2022-07-29 13:07:11 +02:00
Greg L. Turnquist
fb89f95a42 Polishing. 2022-05-19 11:23:01 -05:00
Greg L. Turnquist
6cdb6ce1f9 Workaround to make Contains queries work.
Due to a bug in Hibernate (https://hibernate.atlassian.net/browse/HHH-15142), any Like-based custom finder will fail when submitted to the Entity Manager a second time.

This patch includes a workaround until Hibernate 5.6.9.Final is released.

See also: https://github.com/spring-projects/spring-data-jpa/issues/2519, https://github.com/spring-projects/spring-data-jpa/issues/2472

See #636.
2022-05-19 11:23:01 -05:00
Mark Paluch
2eae935af8 Upgrade to Spring Boot 2.7 RC1.
Remove unneeded version properties. Move off deprecated config properties. Adopt to flapdoodle deprecations.

See #636
2022-05-19 11:23:00 -05:00
Mark Paluch
b9c0e501d7 Java 16 migration for JPA examples.
See #606.
2021-04-30 10:29:44 +02:00
Mark Paluch
743937c45f Merge JPA Java 8 examples with general examples. 2021-04-30 10:29:38 +02:00
Mark Paluch
ec8557c7da Update copyright years to 2021.
Closes #616
2021-04-27 14:47:20 +02:00
Mark Paluch
b319a9154f Use import.sql instead of data.sql. 2021-04-19 09:29:13 +02:00
Mark Paluch
53dc64ecb4 Polishing.
Reformat code. Simplify annotation setup.

See #603
Original pull request: #604.
2021-02-25 09:30:37 +01:00
Jens Schauder
fef817eb22 Adds an example demonstrating the use of Spring Data Envers.
Closes #603
Original pull request: #604.
2021-02-25 09:27:14 +01:00
Jens Schauder
64c1eeaf05 Polishing.
Add `@author` tags to changed files.
Remove Hamcrest usage.

Original pull request #602
Related tickest #583
2021-01-29 10:54:35 +01:00
divya_jnu08
6a894d9334 Migrates JPA examples to JUnit 5.
Original pull request #602
Related tickest #583
2021-01-29 10:52:20 +01:00
Jens Schauder
16fe0db465 #125 - Polishing.
Use AssertJ for assertions.
Adjust copyright.

Original pull request: #126.
2020-11-09 15:24:06 +01:00
Thomas Darimont
322c8b5ba3 #125 - Added example to demonstrate support for JPA 2.1 EntityGraphs.
This demonstrates the use of JPA 2.1 fetch graphs in two ways.
1. By referencing a NamedEntityGraph declared on the Product entity
2. Declaratively defining an entity graph on a repository query method.

Original pull request: #126.
2020-11-09 15:22:33 +01:00
Mark Paluch
c0d2544995 #553 - Adapt Spring Data JPA.
Replace Joda-Time with JSR-310 types.
2020-05-11 10:40:11 +02:00
Oliver Gierke
c88ad331c0 #553 - Upgrade to Spring Boot 2.3. 2020-05-11 10:40:05 +02:00
Mark Paluch
926b4bc276 #556 - Upgrade to Spring Boot 2.2.5.
Exclude Eclipselink for Java 15 build profile as it isn't compatible with Java 15.
2020-02-27 15:45:12 +01:00
Mark Paluch
574e8891e5 #555 - Polishing.
Extract feature preview into property for easier reuse. Upgrade to Eclipselink 2.7.6.
2020-02-27 11:36:01 +01:00
Kovács, Péter
950bcf04d8 #547 - Fixes Javadoc typo.
Original pull request: #547.
2019-12-04 08:47:46 +01:00
Oliver Drotbohm
3777b06b03 #506 - Replace custom Eclipselink setup with dedicated starter. 2019-08-08 19:01:13 +02:00
Oliver Drotbohm
c220ad61fb #514 - Use spring-framework.version instead of spring.version.
See spring-projects/spring-boot#17037.
2019-08-08 19:01:13 +02:00
Oliver Drotbohm
557851105c #514 - Switch to Spring Boot 2.2.
Fixed infrastructure configuration in Eclipselink example.
2019-08-08 18:57:39 +02:00
Oliver Drotbohm
e1a739a3d6 #508 - Upgrade to Eclipselink 2.7.4. 2019-07-10 15:28:58 +02:00
Oliver Drotbohm
f6245580c0 #504 - Fixing deprecation warnings in JPA and REST examples. 2019-06-07 09:30:43 +02:00
Feng Zhang
7b0c7a539b #494 - Fix spelling mistake.
Original pull request: #494.
2019-03-26 08:41:58 +01:00
Spring Operator
ccae97890f #491 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 426 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-22 08:13:14 +01:00
Spring Operator
6d51ebf294 #473 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://mybatis.org/dtd/mybatis-3-config.dtd (301) with 1 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-config.dtd) result SSLHandshakeException).
* http://mybatis.org/dtd/mybatis-3-mapper.dtd (301) with 2 occurrences could not be migrated:
   ([https](https://mybatis.org/dtd/mybatis-3-mapper.dtd) result SSLHandshakeException).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 70 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://maven.apache.org/maven-v4_0_0.xsd with 6 occurrences migrated to:
  https://maven.apache.org/maven-v4_0_0.xsd ([https](https://maven.apache.org/maven-v4_0_0.xsd) result 301).
* http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd with 1 occurrences migrated to:
  https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd ([https](https://java.sun.com/xml/ns/persistence/persistence_2_0.xsd) result 302).

# Ignored
These URLs were intentionally ignored.

* http://java.sun.com/xml/ns/persistence with 2 occurrences
* http://maven.apache.org/POM/4.0.0 with 152 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 77 occurrences

Original pull request: #472
2019-03-20 10:10:59 -05:00
Spring Operator
5e80d9cff6 #452 - URL cleanup in POMs.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://ethlo.com/maven (301) migrated to:
  https://ethlo.com/maven ([https](https://ethlo.com/maven) result 404).

## Fixed Success
These URLs were fixed successfully.

* http://projects.spring.io/spring-data-cassandra migrated to:
  https://projects.spring.io/spring-data-cassandra ([https](https://projects.spring.io/spring-data-cassandra) result 301).
* http://projects.spring.io/spring-data-jdbc migrated to:
  https://projects.spring.io/spring-data-jdbc ([https](https://projects.spring.io/spring-data-jdbc) result 301).
* http://projects.spring.io/spring-data-jpa migrated to:
  https://projects.spring.io/spring-data-jpa ([https](https://projects.spring.io/spring-data-jpa) result 301).
* http://projects.spring.io/spring-data-ldap migrated to:
  https://projects.spring.io/spring-data-ldap ([https](https://projects.spring.io/spring-data-ldap) result 301).
* http://projects.spring.io/spring-data-mongodb migrated to:
  https://projects.spring.io/spring-data-mongodb ([https](https://projects.spring.io/spring-data-mongodb) result 301).
* http://projects.spring.io/spring-data-solr migrated to:
  https://projects.spring.io/spring-data-solr ([https](https://projects.spring.io/spring-data-solr) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/maven-v4_0_0.xsd
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-07 17:29:30 +01:00
Mark Paluch
016549a2b4 #440 - Use Specification directly instead of deprecated Specifications type.
We now use Specification directly instead of using Specifications.where(…).
2018-12-12 15:42:29 +01:00
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