Skip to content

Commit 6ced2f0

Browse files
committed
Merge remote-tracking branch 'upstream/main' into wip/6.0
2 parents 9786920 + 5df5ddb commit 6ced2f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+748
-156
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ While we try to keep requirements for contributing to a minimum, there are a few
2121
we ask that you mind.
2222

2323
For code contributions, these guidelines include:
24-
* respect the project code style - find templates for [IntelliJ IDEA](https://community.jboss.org/docs/DOC-15468) or [Eclipse](https://community.jboss.org/docs/DOC-16649)
24+
* respect the project code style - find templates for [IntelliJ IDEA](https://hibernate.org/community/contribute/intellij-idea/) or [Eclipse](https://hibernate.org/community/contribute/eclipse-ide/)
2525
* have a corresponding JIRA issue and the key for this JIRA issue should be used in the commit message
2626
* have a set of appropriate tests. For bug reports, the tests reproduce the initial reported bug
27-
and illustrates that the solution actually fixes the bug. For features/enhancements, the
27+
and illustrate that the solution actually fixes the bug. For features/enhancements, the
2828
tests illustrate the feature working as intended. In both cases the tests are incorporated into
2929
the project to protect against regressions
3030
* if applicable, documentation is updated to reflect the introduced changes
@@ -47,14 +47,14 @@ GitHub there are a few pre-requisite steps to follow:
4747
the linked page, this also includes:
4848
* [set up your local git install](https://help.github.com/articles/set-up-git)
4949
* clone your fork
50-
* See the wiki pages for setting up your IDE, whether you use
51-
[IntelliJ IDEA](https://community.jboss.org/wiki/ContributingToHibernateUsingIntelliJ)
52-
or [Eclipse](https://community.jboss.org/wiki/ContributingToHibernateUsingEclipse)<sup>(1)</sup>.
50+
* see the wiki pages for setting up your IDE, whether you use
51+
[IntelliJ IDEA](https://hibernate.org/community/contribute/intellij-idea/)
52+
or [Eclipse](https://hibernate.org/community/contribute/eclipse-ide/)<sup>(1)</sup>.
5353

5454

5555
## Create the working (topic) branch
5656

57-
Create a [topic branch](http://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches)
57+
Create a [topic branch](https://git-scm.com/book/en/Git-Branching-Branching-Workflows#Topic-Branches)
5858
on which you will work. The convention is to incorporate the JIRA issue key in the name of this branch,
5959
although this is more of a mnemonic strategy than a hard-and-fast rule - but doing so helps:
6060
* remember what each branch is for
@@ -87,7 +87,7 @@ appreciated btw), please use rebasing rather than merging. Merging creates
8787
## Submit
8888

8989
* push your changes to the topic branch in your fork of the repository
90-
* initiate a [pull request](http://help.github.com/articles/creating-a-pull-request)
90+
* initiate a [pull request](https://help.github.com/articles/creating-a-pull-request)
9191
* update the JIRA issue by providing the PR link in the **Pull Request** column on the right
9292

9393

README.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ to applications, libraries, and frameworks.
33

44
It also provides an implementation of the JPA specification, which is the standard Java specification for ORM.
55

6-
This is the repository of its source code; see http://hibernate.org/orm/[Hibernate.org] for additional information.
6+
This is the repository of its source code; see https://hibernate.org/orm/[Hibernate.org] for additional information.
77

8-
image:http://ci.hibernate.org/job/hibernate-orm-main-h2-main/badge/icon[Build Status,link=http://ci.hibernate.org/job/hibernate-orm-main-h2-main/]
8+
image:https://ci.hibernate.org/job/hibernate-orm-main-h2-main/badge/icon[Build Status,link=https://ci.hibernate.org/job/hibernate-orm-main-h2-main/]
99
image:https://img.shields.io/lgtm/grade/java/g/hibernate/hibernate-orm.svg?logo=lgtm&logoWidth=18[Language grade: Java,link=https://lgtm.com/projects/g/hibernate/hibernate-orm/context:java]
1010

1111
== Continuous Integration
1212

13-
Hibernate uses both http://jenkins-ci.org[Jenkins] and https://github.com/features/actions[GitHub Actions]
13+
Hibernate uses both https://jenkins-ci.org[Jenkins] and https://github.com/features/actions[GitHub Actions]
1414
for its CI needs. See
1515

16-
* http://ci.hibernate.org/view/ORM/[Jenkins Jobs]
16+
* https://ci.hibernate.org/view/ORM/[Jenkins Jobs]
1717
* https://github.com/hibernate/hibernate-orm/actions[GitHub Actions Jobs]
1818

1919
== Building from sources
@@ -25,7 +25,7 @@ Gradle.
2525

2626
Contributors should read the link:CONTRIBUTING.md[Contributing Guide].
2727

28-
See the guides for setting up http://hibernate.org/community/contribute/intellij-idea/[IntelliJ] or
28+
See the guides for setting up https://hibernate.org/community/contribute/intellij-idea/[IntelliJ] or
2929
https://hibernate.org/community/contribute/eclipse-ide/[Eclipse] as your development environment.
3030

3131
== Gradle Primer

ci/jpa-2.2-tck.Jenkinsfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ pipeline {
77
tools {
88
jdk 'OpenJDK 8 Latest'
99
}
10+
parameters {
11+
booleanParam(name: 'NO_SLEEP', defaultValue: true, description: 'Whether the NO_SLEEP patch should be applied to speed up the TCK execution')
12+
}
1013
stages {
1114
stage('Build') {
1215
steps {
@@ -39,18 +42,21 @@ pipeline {
3942
steps {
4043
sh """ \
4144
docker rm -f tck || true
42-
docker run -v ~/.m2/repository/org/hibernate:/root/.m2/repository/org/hibernate:z -e NO_SLEEP=true -e HIBERNATE_VERSION=$HIBERNATE_VERSION --name tck jakarta-tck-runner
43-
docker cp tck:/tck/persistence-tck/tmp/JTreport/ ./JTreport
45+
docker rm -f tck-vol || true
46+
docker volume create tck-vol
47+
docker run -v ~/.m2/repository/org/hibernate:/root/.m2/repository/org/hibernate:z -v tck-vol:/tck/persistence-tck/tmp/:z -e NO_SLEEP=${params.NO_SLEEP} -e HIBERNATE_VERSION=$HIBERNATE_VERSION --name tck jakarta-tck-runner
48+
docker cp tck:/tck/persistence-tck/tmp/ ./results
4449
"""
45-
archiveArtifacts artifacts: 'JTreport/**'
50+
archiveArtifacts artifacts: 'results/**'
4651
script {
4752
failures = sh (
4853
script: """ \
54+
set +x
4955
while read line; do
5056
if [[ "\$line" != *"Passed." ]]; then
5157
echo "\$line"
5258
fi
53-
done <JTreport/text/summary.txt
59+
done <results/JTreport/text/summary.txt
5460
""",
5561
returnStdout: true
5662
).trim()

ci/jpa-3.0-tck.Jenkinsfile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ pipeline {
77
tools {
88
jdk 'OpenJDK 8 Latest'
99
}
10+
parameters {
11+
choice(name: 'IMAGE_JDK', choices: ['jdk8', 'jdk11'], description: 'The JDK base image version to use for the TCK image.')
12+
string(name: 'TCK_VERSION', defaultValue: '3.0.0', description: 'The version of the Jakarta JPA TCK i.e. `2.2.0` or `3.0.1`')
13+
string(name: 'TCK_SHA', defaultValue: 'b08c8887f00306f8bb7ebe54c4c810f3452519f5395733637ccc639b5081aebf', description: 'The SHA256 of the Jakarta JPA TCK that is distributed under https://download.eclipse.org/jakartaee/persistence/3.0/jakarta-persistence-tck-${TCK_VERSION}.zip.sha256')
14+
booleanParam(name: 'NO_SLEEP', defaultValue: true, description: 'Whether the NO_SLEEP patch should be applied to speed up the TCK execution')
15+
}
1016
stages {
1117
stage('Build') {
1218
steps {
@@ -30,7 +36,7 @@ pipeline {
3036
dir('tck') {
3137
checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/hibernate/jakarta-tck-runner.git']]]
3238
sh """ \
33-
cd jpa-3.0; docker build -t jakarta-tck-runner .
39+
cd jpa-3.0; docker build -f Dockerfile.${params.IMAGE_JDK} -t jakarta-tck-runner --build-arg TCK_VERSION=${params.TCK_VERSION} --build-arg TCK_SHA=${params.TCK_SHA} .
3440
"""
3541
}
3642
}
@@ -39,18 +45,21 @@ pipeline {
3945
steps {
4046
sh """ \
4147
docker rm -f tck || true
42-
docker run -v ~/.m2/repository/org/hibernate:/root/.m2/repository/org/hibernate:z -e NO_SLEEP=true -e HIBERNATE_VERSION=$HIBERNATE_VERSION --name tck jakarta-tck-runner
43-
docker cp tck:/tck/persistence-tck/tmp/JTreport/ ./JTreport
48+
docker rm -f tck-vol || true
49+
docker volume create tck-vol
50+
docker run -v ~/.m2/repository/org/hibernate:/root/.m2/repository/org/hibernate:z -v tck-vol:/tck/persistence-tck/tmp/:z -e NO_SLEEP=${params.NO_SLEEP} -e HIBERNATE_VERSION=$HIBERNATE_VERSION --name tck jakarta-tck-runner
51+
docker cp tck:/tck/persistence-tck/tmp/ ./results
4452
"""
45-
archiveArtifacts artifacts: 'JTreport/**'
53+
archiveArtifacts artifacts: 'results/**'
4654
script {
4755
failures = sh (
4856
script: """ \
57+
set +x
4958
while read line; do
5059
if [[ "\$line" != *"Passed." ]]; then
5160
echo "\$line"
5261
fi
53-
done <JTreport/text/summary.txt
62+
done <results/JTreport/text/summary.txt
5463
""",
5564
returnStdout: true
5665
).trim()

documentation/documentation.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ task aggregateJavadocs(type: Javadoc) {
122122
overview = project.file( 'src/main/javadoc/overview.html' )
123123
windowTitle = 'Hibernate JavaDocs'
124124
docTitle = "Hibernate JavaDoc ($project.version)"
125-
bottom = "Copyright &copy; 2001-$currentYear <a href=\"http://redhat.com\">Red Hat, Inc.</a> All Rights Reserved."
125+
bottom = "Copyright &copy; 2001-$currentYear <a href=\"https://redhat.com\">Red Hat, Inc.</a> All Rights Reserved."
126126
use = true
127127
options.encoding = 'UTF-8'
128128

129129
links = [
130130
'https://docs.oracle.com/javase/8/docs/api/',
131-
'http://docs.jboss.org/hibernate/beanvalidation/spec/2.0/api/',
132-
'http://docs.jboss.org/cdi/api/2.0/',
131+
'https://docs.jboss.org/hibernate/beanvalidation/spec/2.0/api/',
132+
'https://docs.jboss.org/cdi/api/2.0/',
133133
'https://javaee.github.io/javaee-spec/javadocs/'
134134
]
135135

documentation/src/main/asciidoc/integrationguide/Preface.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[preface]]
22
== Preface
33

4-
Hibernate is an http://en.wikipedia.org/wiki/Object-relational_mapping[Object/Relational Mapping] solution for Java environments.
4+
Hibernate is an https://en.wikipedia.org/wiki/Object-relational_mapping[Object/Relational Mapping] solution for Java environments.
55

66
Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities.
77
It can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.

documentation/src/main/asciidoc/quickstart/guides/obtaining.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ hibernate-core:: The main (core) Hibernate module. Defines its ORM features and
99
hibernate-envers:: Hibernate's historical entity versioning feature
1010
hibernate-spatial:: Hibernate's Spatial/GIS data-type support
1111
hibernate-osgi:: Hibernate support for running in OSGi containers.
12-
hibernate-agroal:: Integrates the http://agroal.github.io/[Agroal] connection pooling library into Hibernate
13-
hibernate-c3p0:: Integrates the http://www.mchange.com/projects/c3p0/[C3P0] connection pooling library into Hibernate
12+
hibernate-agroal:: Integrates the https://agroal.github.io/[Agroal] connection pooling library into Hibernate
13+
hibernate-c3p0:: Integrates the https://www.mchange.com/projects/c3p0/[C3P0] connection pooling library into Hibernate
1414
hibernate-hikaricp:: Integrates the https://github.com/brettwooldridge/HikariCP/[HikariCP] connection pooling library into Hibernate
15-
hibernate-vibur:: Integrates the http://www.vibur.org/[Vibur DBCP] connection pooling library into Hibernate
16-
hibernate-proxool:: Integrates the http://proxool.sourceforge.net/[Proxool] connection pooling library into Hibernate
15+
hibernate-vibur:: Integrates the https://www.vibur.org/[Vibur DBCP] connection pooling library into Hibernate
16+
hibernate-proxool:: Integrates the https://proxool.sourceforge.net/[Proxool] connection pooling library into Hibernate
1717
hibernate-jcache:: Integrates the https://jcp.org/en/jsr/detail?id=107$$[JCache] caching specification into Hibernate,
1818
enabling any compliant implementation to become a second-level cache provider.
19-
hibernate-ehcache:: Integrates the http://ehcache.org/[Ehcache] caching library into Hibernate as a second-level cache provider.
19+
hibernate-ehcache:: Integrates the https://ehcache.org/[Ehcache] caching library into Hibernate as a second-level cache provider.
2020

2121
=== Release Bundle Downloads
2222

@@ -43,10 +43,10 @@ synced to Maven Central as part of an automated job (some small delay may occur)
4343

4444
The team responsible for the JBoss Maven repository maintains a number of Wiki pages that contain important information:
4545

46-
* http://community.jboss.org/docs/DOC-14900 - General information about the repository.
47-
* http://community.jboss.org/docs/DOC-15170 - Information about setting up the JBoss repositories in order to do
46+
* https://community.jboss.org/docs/DOC-14900 - General information about the repository.
47+
* https://community.jboss.org/docs/DOC-15170 - Information about setting up the JBoss repositories in order to do
4848
development work on JBoss projects themselves.
49-
* http://community.jboss.org/docs/DOC-15169 - Information about setting up access to the repository to use JBoss
49+
* https://community.jboss.org/docs/DOC-15169 - Information about setting up access to the repository to use JBoss
5050
projects as part of your own software.
5151

5252
The Hibernate ORM artifacts are published under the `org.hibernate` groupId.

documentation/src/main/asciidoc/quickstart/guides/preface.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Working with both Object-Oriented software and Relational Databases can be cumbe
77
Development costs are significantly higher due to a number of "paradigm mismatches" between how data is represented in objects
88
versus relational databases. Hibernate is an Object/Relational Mapping (ORM) solution for Java environments. The
99
term Object/Relational Mapping refers to the technique of mapping data between an object model representation to
10-
a relational data model representation. See http://en.wikipedia.org/wiki/Object-relational_mapping for a good
11-
high-level discussion. Also, Martin Fowler's link:$$http://martinfowler.com/bliki/OrmHate.html$$[OrmHate] article
10+
a relational data model representation. See https://en.wikipedia.org/wiki/Object-relational_mapping for a good
11+
high-level discussion. Also, Martin Fowler's link:$$https://martinfowler.com/bliki/OrmHate.html$$[OrmHate] article
1212
takes a look at many of the mismatch problems.
1313

1414
Although having a strong background in SQL is not required to use Hibernate, having a basic understanding of the
1515
concepts can help you understand Hibernate more quickly and fully. An understanding of data modeling principles
16-
is especially important. Both http://www.agiledata.org/essays/dataModeling101.html and
17-
http://en.wikipedia.org/wiki/Data_modeling are good starting points for understanding these data modeling
16+
is especially important. Both https://www.agiledata.org/essays/dataModeling101.html and
17+
https://en.wikipedia.org/wiki/Data_modeling are good starting points for understanding these data modeling
1818
principles. If you are completely new to database access in Java,
1919
https://www.marcobehler.com/guides/a-guide-to-accessing-databases-in-java contains a good overview of the various parts,
2020
pieces and options.
@@ -33,6 +33,6 @@ logic in the Java-based middle-tier. However, Hibernate can certainly help you t
3333
vendor-specific SQL code and streamlines the common task of translating result sets from a tabular
3434
representation to a graph of objects.
3535

36-
See http://hibernate.org/orm/contribute/ for information on getting involved.
36+
See https://hibernate.org/orm/contribute/ for information on getting involved.
3737

3838
IMPORTANT: The projects and code for the tutorials referenced in this guide are available as link:hibernate-tutorials.zip[]

documentation/src/main/asciidoc/quickstart/guides/tutorial_annotations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ any mapping information associated with `title`.
9898

9999
.Practice Exercises
100100
- [ ] Add an association to the `Event` entity to model a message thread. Use the
101-
http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html[_User Guide_] for more details.
101+
https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html[_User Guide_] for more details.
102102
- [ ] Add a callback to receive notifications when an `Event` is created, updated or deleted.
103103
Try the same with an event listener. Use the
104-
http://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html[_User Guide_] for more details.
104+
https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html[_User Guide_] for more details.

documentation/src/main/asciidoc/topical/metamodelgen/MetamodelGenerator.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static metamodel classes.
1212
For developers it is important that the task of the metamodel generation
1313
can be automated.
1414
Hibernate Static Metamodel Generator is an annotation processor based on
15-
http://jcp.org/en/jsr/detail?id=269[JSR_269] with the task of creating JPA 2
15+
https://jcp.org/en/jsr/detail?id=269[JSR_269] with the task of creating JPA 2
1616
static metamodel classes.
1717
The following example shows two JPA 2 entities `Order` and `Item`, together
1818
with the metamodel class `Order_` and a typesafe query.
@@ -111,7 +111,7 @@ persistence unit metadata:
111111
== Canonical Metamodel
112112

113113
The structure of the metamodel classes is described in the JPA 2
114-
(JSR 317) http://jcp.org/en/jsr/detail?id=317[specification], but for
114+
(JSR 317) https://jcp.org/en/jsr/detail?id=317[specification], but for
115115
completeness the definition is repeated in the following paragraphs.
116116
Feel free to skip ahead to the <<chapter-usage,usage chapter>>, if you
117117
are not interested into the gory details.
@@ -258,9 +258,9 @@ pass the processor option to the compiler plugin:
258258
====
259259
The maven-compiler-plugin approach has the disadvantage that the maven compiler plugin
260260
does currently not allow to specify multiple compiler arguments
261-
(http://jira.codehaus.org/browse/MCOMPILER-62[MCOMPILER-62])
261+
(https://jira.codehaus.org/browse/MCOMPILER-62[MCOMPILER-62])
262262
and that messages from the Messenger API are suppressed
263-
(http://jira.codehaus.org/browse/MCOMPILER-66[MCOMPILER-66]).
263+
(https://jira.codehaus.org/browse/MCOMPILER-66[MCOMPILER-66]).
264264
A better approach is to disable annotation processing for the compiler
265265
plugin as seen in below.
266266

documentation/src/main/asciidoc/topical/registries/ServiceRegistries.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ service to be injected is optional, use `InjectService#required=false`.
343343
Once built, a ServiceRegistry is generally considered immutable. The Services themselves might accept
344344
re-configuration, but immutability here means adding/replacing services. So all the services hosted in a particular
345345
ServiceRegistry must be known up-front. To this end, building a ServiceRegistry usually employees a
346-
http://en.wikipedia.org/wiki/Builder_pattern[builder^].
346+
https://en.wikipedia.org/wiki/Builder_pattern[builder^].
347347

348348
=== Building BootstrapServiceRegistry
349349

documentation/src/main/asciidoc/topical/wildfly/Wildfly.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
== Hibernate ORM within WildFly
44

5-
The http://wildfly.org/[WildFly application server] includes Hibernate ORM as the default JPA provider out of the box.
5+
The https://wildfly.org/[WildFly application server] includes Hibernate ORM as the default JPA provider out of the box.
66

77
In previous versions of Hibernate ORM, we offered a "feature pack" to enable anyone to use the very latest version in
88
WildFly as soon as a new release of Hibernate ORM was published.

0 commit comments

Comments
 (0)