Skip to content

Commit a13c829

Browse files
AlexElinmp911de
authored andcommitted
Replace links to the Java EE JPA Spec with ones to the Jakarta Persistence Spec.
Closes spring-projects#3400
1 parent e47efb6 commit a13c829

File tree

14 files changed

+47
-32
lines changed

14 files changed

+47
-32
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/EntityGraph.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @author Christoph Strobl
3535
* @author Thomas Darimont
3636
* @author Oerd Cukalla
37+
* @author Aleksei Elin
3738
* @since 1.6
3839
*/
3940
@Retention(RetentionPolicy.RUNTIME)
@@ -78,8 +79,8 @@ public enum EntityGraphType {
7879
* by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are
7980
* treated according to their specified or default FetchType.
8081
*
81-
* @see <a href="https://download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">JPA 2.1
82-
* Specification: 3.7.4.2 Load Graph Semantics</a>
82+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#load-graph-semantics">Jakarta
83+
* Persistence Specification: Load Graph Semantics</a>
8384
*/
8485
LOAD("jakarta.persistence.loadgraph"),
8586

@@ -88,8 +89,8 @@ public enum EntityGraphType {
8889
* by attribute nodes of the entity graph are treated as FetchType.EAGER and attributes that are not specified are
8990
* treated as FetchType.LAZY
9091
*
91-
* @see <a href="https://download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">JPA 2.1
92-
* Specification: 3.7.4.1 Fetch Graph Semantics</a>
92+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#fetch-graph-semantics">Jakarta
93+
* Persistence Specification: Fetch Graph Semantics</a>
9394
*/
9495
FETCH("jakarta.persistence.fetchgraph");
9596

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/Jpa21Utils.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
* @author Christoph Strobl
4444
* @author Mark Paluch
4545
* @author Jens Schauder
46+
* @author Aleksei Elin
4647
* @since 1.6
4748
*/
4849
public class Jpa21Utils {
@@ -86,8 +87,8 @@ public static QueryHints getFetchGraphHint(EntityManager em, @Nullable JpaEntity
8687
/**
8788
* Adds a JPA 2.1 fetch-graph or load-graph hint to the given {@link Query} if running under JPA 2.1.
8889
*
89-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">JPA 2.1
90-
* Specfication 3.7.4 - Use of Entity Graphs in find and query operations P.117</a>
90+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#a2814">Jakarta
91+
* Persistence Specfication - Use of Entity Graphs in find and query operations</a>
9192
* @param em must not be {@literal null}.
9293
* @param jpaEntityGraph must not be {@literal null}.
9394
* @param entityType must not be {@literal null}.

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/JpaQueryMethod.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@
6363
* @author Сергей Цыпанов
6464
* @author Réda Housni Alaoui
6565
* @author Greg Turnquist
66+
* @author Aleksei Elin
6667
*/
6768
public class JpaQueryMethod extends QueryMethod {
6869

6970
/**
7071
* @see <a href=
71-
* "https://download.oracle.com/otn-pub/jcp/persistence-2.0-fr-eval-oth-JSpec/persistence-2_0-final-spec.pdf">JPA
72-
* 2.0 Specification 2.2 Persistent Fields and Properties Page 23 - Top paragraph.</a>
72+
* "https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#persistent-fields-and-properties">Jakarta
73+
* Persistence Specification: Persistent Fields and Properties - Paragraph
74+
* starting with "Collection-valued persistent...".</a>
7375
*/
7476
private static final Set<Class<?>> NATIVE_ARRAY_TYPES;
7577
private static final StoredProcedureAttributeSource storedProcedureAttributeSource = StoredProcedureAttributeSource.INSTANCE;

spring-data-jpa/src/test/java/org/springframework/data/jpa/domain/sample/Item.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626

2727
/**
2828
* @author Mark Paluch
29-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
30-
* Specification 2.4.1.3 Derived Identities Example 2</a>
29+
* @author Aleksei Elin
30+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta Persistence
31+
* Specification: Derived Identities, Example 2</a>
3132
*/
3233
@Entity
3334
@Table

spring-data-jpa/src/test/java/org/springframework/data/jpa/domain/sample/ItemId.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
/**
2121
* @author Mark Paluch
22-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
23-
* Specification 2.4.1.3 Derived Identities Example 2</a>
22+
* @author Aleksei Elin
23+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
24+
* Persistence Specification: Derived Identities, Example 2</a>
2425
*/
2526
public class ItemId implements Serializable {
2627

spring-data-jpa/src/test/java/org/springframework/data/jpa/domain/sample/ItemSite.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323

2424
/**
2525
* @author Mark Paluch
26-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
27-
* Specification 2.4.1.3 Derived Identities Example 2</a>
26+
* @author Aleksei Elin
27+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
28+
* Persistence Specification: Derived Identities, Example 2</a>
2829
*/
2930
@Entity
3031
@Table

spring-data-jpa/src/test/java/org/springframework/data/jpa/domain/sample/ItemSiteId.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
/**
2121
* @author Mark Paluch
22-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
23-
* Specification 2.4.1.3 Derived Identities Example 2</a>
22+
* @author Aleksei Elin
23+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
24+
* Persistence Specification: Derived Identities, Example 2</a>
2425
*/
2526
public class ItemSiteId implements Serializable {
2627

spring-data-jpa/src/test/java/org/springframework/data/jpa/domain/sample/Site.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
/**
2424
* @author Mark Paluch
2525
* @author Oliver Gierke
26-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
27-
* Specification 2.4.1.3 Derived Identities Example 2</a>
26+
* @author Aleksei Elin
27+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
28+
* Persistence Specification: Derived Identities, Example 2</a>
2829
*/
2930
@Entity
3031
@Table

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/RepositoryWithCompositeKeyTests.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
* @author Jens Schauder
5252
* @author Ernst-Jan van der Laan
5353
* @author Krzysztof Krason
54+
* @author Aleksei Elin
5455
*/
5556
@ExtendWith(SpringExtension.class)
5657
@ContextConfiguration(classes = SampleConfig.class)
@@ -62,8 +63,8 @@ class RepositoryWithCompositeKeyTests {
6263
@Autowired EntityManager em;
6364

6465
/**
65-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.0
66-
* Specification 2.4.1.3 Derived Identities Example 2</a>
66+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
67+
* Persistence Specification: Derived Identities, Example 2</a>
6768
*/
6869
@Test // DATAJPA-269
6970
void shouldSupportSavingEntitiesWithCompositeKeyClassesWithIdClassAndDerivedIdentities() {
@@ -88,8 +89,8 @@ void shouldSupportSavingEntitiesWithCompositeKeyClassesWithIdClassAndDerivedIden
8889
}
8990

9091
/**
91-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.0
92-
* Specification 2.4.1.3 Derived Identities Example 3</a>
92+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
93+
* Persistence Specification: Derived Identities, Example 3</a>
9394
*/
9495
@Test // DATAJPA-269
9596
void shouldSupportSavingEntitiesWithCompositeKeyClassesWithEmbeddedIdsAndDerivedIdentities() {

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/RepositoryWithIdClassKeyTests.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
* @author Mark Paluch
4949
* @author Jens Schauder
5050
* @author Krzysztof Krason
51+
* @author Aleksei Elin
5152
*/
5253
@ExtendWith(SpringExtension.class)
5354
@ContextConfiguration(classes = RepositoryWithIdClassKeyTests.TestConfig.class)
@@ -61,8 +62,8 @@ class RepositoryWithIdClassKeyTests {
6162
@Autowired private ItemSiteRepository itemSiteRepository;
6263

6364
/**
64-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
65-
* Specification 2.4.1.3 Derived Identities Example 2</a>
65+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
66+
* Persistence Specification: 2.4.1.3 Derived Identities Example 2</a>
6667
*/
6768
@Test // DATAJPA-413
6869
void shouldSaveAndLoadEntitiesWithDerivedIdentities() {

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/StringQueryUnitTests.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
* @author Andriy Redko
4141
* @author Diego Krupitza
4242
* @author Mark Paluch
43+
* @author Aleksei Elin
4344
*/
4445
class StringQueryUnitTests {
4546

@@ -456,8 +457,8 @@ void detectsConstructorExpressions() {
456457
}
457458

458459
/**
459-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">JPA 2.1
460-
* specification, section 4.8</a>
460+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#a5438">Jakarta
461+
* Persistence Specification: SELECT clause</a>
461462
*/
462463
@Test // DATAJPA-886
463464
void detectsConstructorExpressionForDefaultConstructor() {

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/sample/ItemRepository.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
/**
2424
* @author Mark Paluch
25-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
26-
* Specification 2.4.1.3 Derived Identities Example 2</a>
25+
* @author Aleksei Elin
26+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
27+
* Persistence Specification: Derived Identities, Example 2</a>
2728
*/
2829
public interface ItemRepository extends JpaRepository<Item, ItemId>, JpaSpecificationExecutor<Item> {}

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/sample/ItemSiteRepository.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121

2222
/**
2323
* @author Mark Paluch
24-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
25-
* Specification 2.4.1.3 Derived Identities Example 2</a>
24+
* @author Aleksei Elin
25+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#a5438">Jakarta
26+
* Persistence Specification: Derived Identities, Example 2</a>
2627
*/
2728
public interface ItemSiteRepository extends JpaRepository<ItemSite, ItemSiteId> {}

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/sample/SiteRepository.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121
/**
2222
* @author Mark Paluch
23-
* @see <a href="download.oracle.com/otn-pub/jcp/persistence-2_1-fr-eval-spec/JavaPersistence.pdf">Final JPA 2.1
24-
* Specification 2.4.1.3 Derived Identities Example 2</a>
23+
* @author Aleksei Elin
24+
* @see <a href="https://jakarta.ee/specifications/persistence/3.1/jakarta-persistence-spec-3.1#examples-of-derived-identities">Jakarta
25+
* Persistence Specification: Derived Identities, Example 2</a>
2526
*/
2627
public interface SiteRepository extends JpaRepository<Site, Integer> {}

0 commit comments

Comments
 (0)