Skip to content

Commit f46ff55

Browse files
authored
Merge branch 'main' into HHH-19001
2 parents 672cd7f + f0bfef9 commit f46ff55

File tree

16,719 files changed

+45791
-48515
lines changed

Some content is hidden

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

16,719 files changed

+45791
-48515
lines changed

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Initial commits that enabled spotless automatic formatting
22
59731c089e9d649a663c81d9622b54557d6aba37
33
4d63ffd98cdead513ab0be0fa23f9787423092d3
4+
# Envers removal/restore
5+
9c7dd3bf34dfbb2f4fa9eb79a0294c2cc759c836
6+
b2a528f2945cee26667b22b867ccef143b7c430c
7+
4273f1cde06f3622f50c2846078398c1977a49c4

.github/dependabot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@ updates:
1717
- package-ecosystem: github-actions
1818
directory: "/"
1919
schedule:
20-
interval: daily
20+
interval: monthly
21+
groups:
22+
workflow-actions:
23+
patterns:
24+
- "*"
25+
allow:
26+
- dependency-name: "actions/*"
27+
- dependency-name: "redhat-actions/*"

.github/workflows/ci-report.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818
# Checkout target branch which has trusted code
1919
- name: Check out target branch
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
with:
2222
persist-credentials: false
2323
ref: ${{ github.ref }}
2424
- name: Set up Java 17
25-
uses: actions/setup-java@v4
25+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
2626
with:
2727
distribution: 'temurin'
2828
java-version: '17'
@@ -38,7 +38,7 @@ jobs:
3838
echo "buildtool-monthly-branch-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}" >> $GITHUB_OUTPUT
3939
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
4040
- name: Restore Maven/Gradle Dependency/Dist Caches
41-
uses: actions/cache/restore@v4
41+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
4242
with:
4343
path: |
4444
~/.m2/repository/
@@ -52,7 +52,7 @@ jobs:
5252
5353
- name: Download GitHub Actions artifacts for the Develocity build scans
5454
id: downloadBuildScan
55-
uses: actions/download-artifact@v4
55+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5656
with:
5757
pattern: build-scan-data-*
5858
github-token: ${{ github.token }}
@@ -75,4 +75,4 @@ jobs:
7575
done
7676
exit $status
7777
env:
78-
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY_PR }}
78+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY_PR }}

.github/workflows/ci.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
4747
# - rdbms: hana
4848
steps:
49-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050
with:
5151
persist-credentials: false
5252
- name: Reclaim Disk Space
@@ -56,7 +56,7 @@ jobs:
5656
RDBMS: ${{ matrix.rdbms }}
5757
run: ci/database-start.sh
5858
- name: Set up Java 17
59-
uses: actions/setup-java@v4
59+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
6060
with:
6161
distribution: 'temurin'
6262
java-version: '17'
@@ -73,7 +73,7 @@ jobs:
7373
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
7474
- name: Cache Maven/Gradle Dependency/Dist Caches
7575
id: cache-maven
76-
uses: actions/cache@v4
76+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
7777
# if it's not a pull request, we restore and save the cache
7878
if: github.event_name != 'pull_request'
7979
with:
@@ -90,7 +90,7 @@ jobs:
9090
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
9191
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
9292
- name: Restore Maven/Gradle Dependency/Dist Caches
93-
uses: actions/cache/restore@v4
93+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
9494
# if it a pull request, we restore the cache but we don't save it
9595
if: github.event_name == 'pull_request'
9696
with:
@@ -118,14 +118,14 @@ jobs:
118118
# The actual publishing must be done in a separate job (see ci-report.yml).
119119
# We don't write to the remote cache as that would be unsafe.
120120
- name: Upload GitHub Actions artifact for the Develocity build scan
121-
uses: actions/upload-artifact@v4
121+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
122122
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
123123
with:
124124
name: build-scan-data-${{ matrix.rdbms }}
125125
path: ~/.gradle/build-scan-data
126126

127127
- name: Upload test reports (if Gradle failed)
128-
uses: actions/upload-artifact@v4
128+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
129129
if: failure()
130130
with:
131131
name: test-reports-java11-${{ matrix.rdbms }}
@@ -151,7 +151,7 @@ jobs:
151151
- rdbms: oracle_db21c
152152
- rdbms: oracle_db23c
153153
steps:
154-
- uses: actions/checkout@v4
154+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
155155
with:
156156
persist-credentials: false
157157
- name: Reclaim disk space and sanitize user home
@@ -162,7 +162,7 @@ jobs:
162162
RUNID: ${{ github.run_number }}
163163
run: ci/database-start.sh
164164
- name: Set up Java 21
165-
uses: graalvm/setup-graalvm@v1
165+
uses: graalvm/setup-graalvm@aafbedb8d382ed0ca6167d3a051415f20c859274 # v1.2.8
166166
with:
167167
distribution: 'graalvm'
168168
java-version: '21'
@@ -179,7 +179,7 @@ jobs:
179179
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
180180
- name: Cache Maven/Gradle Dependency/Dist Caches
181181
id: cache-maven
182-
uses: actions/cache@v4
182+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
183183
# if it's not a pull request, we restore and save the cache
184184
if: github.event_name != 'pull_request'
185185
with:
@@ -196,7 +196,7 @@ jobs:
196196
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
197197
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
198198
- name: Restore Maven/Gradle Dependency/Dist Caches
199-
uses: actions/cache/restore@v4
199+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
200200
# if it a pull request, we restore the cache but we don't save it
201201
if: github.event_name == 'pull_request'
202202
with:
@@ -216,20 +216,23 @@ jobs:
216216
RUNID: ${{ github.run_number }}
217217
# These runners have no HOME variable set by default, we need to explicitly set it to make the build work
218218
HOME: /root
219+
# Needed for TFO (TCP fast open)
220+
LD_PRELOAD: /home/opc/libtfojdbc1.so
221+
LD_LIBRARY_PATH: /home/opc
219222
run: ./ci/build-github.sh
220223
shell: bash
221224
# Upload build scan data.
222225
# The actual publishing must be done in a separate job (see ci-report.yml).
223226
# We don't write to the remote cache as that would be unsafe.
224227
# That's even on push, because we do not trust Atlas runners to hold secrets: they are shared infrastructure.
225228
- name: Upload GitHub Actions artifact for the Develocity build scan
226-
uses: actions/upload-artifact@v4
229+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
227230
if: "${{ !cancelled() }}"
228231
with:
229232
name: build-scan-data-${{ matrix.rdbms }}
230233
path: ~/.gradle/build-scan-data
231234
- name: Upload test reports (if Gradle failed)
232-
uses: actions/upload-artifact@v4
235+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
233236
if: failure()
234237
with:
235238
name: test-reports-java11-${{ matrix.rdbms }}
@@ -245,13 +248,13 @@ jobs:
245248
name: Static code analysis
246249
runs-on: ubuntu-latest
247250
steps:
248-
- uses: actions/checkout@v4
251+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
249252
with:
250253
persist-credentials: false
251254
- name: Reclaim disk space and sanitize user home
252255
run: .github/ci-prerequisites-atlas.sh
253256
- name: Set up Java 17
254-
uses: actions/setup-java@v4
257+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
255258
with:
256259
distribution: 'temurin'
257260
java-version: '17'
@@ -268,7 +271,7 @@ jobs:
268271
echo "buildtool-cache-key=${ROOT_CACHE_KEY}-${CURRENT_MONTH}-${CURRENT_BRANCH}-${CURRENT_DAY}" >> $GITHUB_OUTPUT
269272
- name: Cache Maven/Gradle Dependency/Dist Caches
270273
id: cache-maven
271-
uses: actions/cache@v4
274+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
272275
# if it's not a pull request, we restore and save the cache
273276
if: github.event_name != 'pull_request'
274277
with:
@@ -285,7 +288,7 @@ jobs:
285288
${{ steps.cache-key.outputs.buildtool-monthly-branch-cache-key }}-
286289
${{ steps.cache-key.outputs.buildtool-monthly-cache-key }}-
287290
- name: Restore Maven/Gradle Dependency/Dist Caches
288-
uses: actions/cache/restore@v4
291+
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
289292
# if it a pull request, we restore the cache but we don't save it
290293
if: github.event_name == 'pull_request'
291294
with:
@@ -311,18 +314,18 @@ jobs:
311314
# The actual publishing must be done in a separate job (see ci-report.yml).
312315
# We don't write to the remote cache as that would be unsafe.
313316
- name: Upload GitHub Actions artifact for the Develocity build scan
314-
uses: actions/upload-artifact@v4
317+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
315318
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
316319
with:
317320
name: build-scan-data-sca
318321
path: ~/.gradle/build-scan-data
319322

320323
- name: Upload test reports (if Gradle failed)
321-
uses: actions/upload-artifact@v4
324+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
322325
if: failure()
323326
with:
324327
name: test-reports-java11-sca
325328
path: |
326329
./**/target/reports/tests/
327330
- name: Omit produced artifacts from build cache
328-
run: ./ci/before-cache.sh
331+
run: ./ci/before-cache.sh

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ jobs:
3737
steps:
3838

3939
- name: Set up JDK
40-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
4141
with:
4242
distribution: 'temurin'
4343
java-version: '17'
4444

4545
- name: Checkout repository
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v3
50+
uses: github/codeql-action/init@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # v3.28.4
5151
with:
5252
languages: ${{ matrix.language }}
5353
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -61,7 +61,7 @@ jobs:
6161
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
6262
# If this step fails, then you should remove it and run the build manually (see below)
6363
- name: Autobuild
64-
uses: github/codeql-action/autobuild@v3
64+
uses: github/codeql-action/autobuild@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # v3.28.4
6565

6666
# ℹ️ Command-line programs to run using the OS shell.
6767
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -74,6 +74,6 @@ jobs:
7474
# ./location_of_script_within_repo/buildscript.sh
7575

7676
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@v3
77+
uses: github/codeql-action/analyze@7e3036b9cd87fc26dd06747b7aa4b96c27aaef3a # v3.28.4
7878
with:
79-
category: "/language:${{matrix.language}}"
79+
category: "/language:${{matrix.language}}"

.idea/.gitignore

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/icon.svg

Lines changed: 11 additions & 0 deletions
Loading

.mailmap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@
4343
# assume any information here is accurate.
4444

4545
46+
Adar Lieber-Dembo <[email protected]>
4647
48+
Alexander Kotlyarov <[email protected]>
49+
4750
4851
Andrej Golovnin <[email protected]> Andrej Golovnin <[email protected]>
4952
Andrig Miller <[email protected]> andrigtmiller <[email protected]>
5053
Andrig Miller <[email protected]> andy.miller <[email protected]>
54+
5155
Barry LaFond <[email protected]> blafond <[email protected]>
5256
Boris Korogvich <[email protected]> VEINHORN <[email protected]>
5357
@@ -61,6 +65,7 @@ Chris Cranford <[email protected]> <[email protected]> Naros
6165
6266
Chris Cranford <[email protected]> cranforc <[email protected]>
6367
Christoph Dreis <[email protected]> ChristophDreis <[email protected]>
68+
Daniel Heinrich <[email protected]>
6469
Dave Repshas <[email protected]> drepshas <[email protected]>
6570
David M. Carr <[email protected]> davidmc24 <[email protected]>
6671
David M. Carr <[email protected]> dcarr <[email protected]>
@@ -82,26 +87,37 @@ Hardy Ferentschik <[email protected]> <[email protected]>
8287
8388
Harsh Panchal <[email protected]> BOOTMGR <[email protected]>
8489
Hernán Chanfreau <[email protected]> hernan <[email protected]>
90+
Ivan Munic <[email protected]>
8591
Jaikiran Pai <[email protected]> Jaikiran <[email protected]>
92+
93+
8694
Jeremy Whiting <[email protected]> Jeremy Whiting <[email protected]>
8795
John O'Hara <[email protected]> johara <[email protected]>
8896
8997
John O'Hara <[email protected]> JohnOhara <[email protected]>
9098
John O'Hara <[email protected]> John OHara <[email protected]>
9199
John Verhaeg <[email protected]> John Verhaeg <[email protected]>
92100
101+
102+
103+
Leonard Siu <[email protected]>
93104
Loïc LEFEVRE <[email protected]> LLEFEVRE <[email protected]>
94105
Luis Barreiro <[email protected]> barreiro <[email protected]>
95106
Lukasz Antoniak <[email protected]> lukasz-antoniak <[email protected]>
107+
Matthew Vance <[email protected]>
96108
Marco Belladelli <[email protected]> marco <[email protected]>
97109
110+
98111
Misty Stanley-Jones <[email protected]> misty <[email protected]>
99112
Misty Stanley-Jones <[email protected]> <mstanley@cheezel.(none)>
100113
Misty Stanley-Jones <[email protected]> mstanleyjones <[email protected]>
101114
102115
116+
Nelson Rodrigues <[email protected]>
117+
Nikolay Mukhanov <[email protected]>
103118
Oliver Breidenbach <[email protected]> obr <[email protected]>
104-
Radim Vansa <[email protected]> rvansa <[email protected]>
119+
Radim Vansa <[email protected]> rvansa <[email protected]>
120+
105121
106122
Scott Marlow <[email protected]> Scott Marlow <[email protected]>
107123
Scott Marlow <[email protected]> smarlow <[email protected]>
@@ -110,6 +126,7 @@ Ståle W. Pedersen <[email protected]> <[email protected]>
110126
Steve Ebersole <[email protected]> <steve@apollo.(none)>
111127
Steve Ebersole <[email protected]> <steve@t510.(none)>
112128
129+
Viacheslav Rarata <[email protected]>
113130
114131
115132
Vlad Mihalcea <[email protected]> <Vlad Mihalcea>

CONTRIBUTING.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ project really) strong and successful.
55

66
# Legal
77

8-
All original contributions to Hibernate are licensed under the
9-
[GNU Lesser General Public License (LGPL)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt),
10-
version 2.1 or later, or, if another license is specified as governing the file or directory being
11-
modified, such other license.
12-
13-
The LGPL text is included verbatim in the [lgpl.txt](lgpl.txt) file in the root directory of the ORM repository.
8+
All original contributions to Hibernate are licensed under the
9+
[Apache License version 2.0 (Apache-2.0)](https://www.apache.org/licenses/LICENSE-2.0.txt),
10+
or, if another license is specified as governing the file or directory being modified, such other license.
11+
The Apache-2.0 license text is included verbatim in the [`LICENSE.txt`](LICENSE.txt) file
12+
13+
Note that Hibernate ORM 7.0.0.Beta4 and earlier are distributed under
14+
[a different license](https://github.com/hibernate/hibernate-orm/blob/6.6/CONTRIBUTING.md#legal).
15+
To allow for potential backporting, the Hibernate team asks contributors to dual-license their contribution.
16+
A Pull Request template already applies the proper wording to make it easy.
1417

1518
All contributions are subject to the [Developer Certificate of Origin (DCO)](https://developercertificate.org/).
1619

0 commit comments

Comments
 (0)