Skip to content

7.0 backports #10277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Jun 4, 2025
Merged

7.0 backports #10277

merged 37 commits into from
Jun 4, 2025

Conversation

mbellade
Copy link
Member

@mbellade mbellade commented Jun 4, 2025

Backport of fixes for 7.0.1.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@mbellade mbellade added the 7.0 label Jun 4, 2025
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jun 4, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [841ed2e, 57dd5bd, 6e33592, 776e781, 3991497, 5fc3e64]
❌ The PR title or body should list the keys of all JIRA issues mentioned in the commits
    ↳ Issue keys mentioned in commits but missing from the PR title or body: [HHH-18252, HHH-18813, HHH-18876, HHH-18891, HHH-19369, HHH-19372, HHH-19383, HHH-19387, HHH-19463, HHH-19471, HHH-19472, HHH-19473, HHH-19476, HHH-19477, HHH-19479, HHH-19480, HHH-19482, HHH-19490, HHH-19515]

› This message was automatically generated.


// This code is good but unnecessary, because BinderHelper.referencedProperty()
// automatically marks the referenced property unique (but is this actually good?)
private static void checkReferenceToUniqueKey(SimpleValue value, Property synthProp) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'value' is never used.
@Entity
public class ConcreteEntity extends SuperclassEntity {
@Id
protected long id;

Check warning

Code scanning / CodeQL

Field masks field in super class Warning test

This field shadows another field called
id
in a superclass.
@Test
public void testJoinFetchAfterFind(EntityManagerFactoryScope scope) {
scope.inTransaction( entityManager -> {
TelephoneNumber telephoneNumber = entityManager.find( TelephoneNumber.class, TELEPHONE_NUMBER_ID );

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'TelephoneNumber telephoneNumber' is never read.
@mbellade mbellade marked this pull request as ready for review June 4, 2025 14:37
Hibernate-CI and others added 24 commits June 4, 2025 17:21
(cherry picked from commit 28bcb12)
(cherry picked from commit 62ca0fc)
(cherry picked from commit 4d75316)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
(cherry picked from commit a9461d1)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
(cherry picked from commit 9a1bf3b)
(cherry picked from commit fe7a4d7)
NativeQueryConstructorTransformer does not prevent the result
type from having multiple constructors, it just rejects a
result type with multiple constructors with matching arity

(cherry picked from commit 3b3ee64)
in this case it can't be intended for another provider

(cherry picked from commit 05e9f1f)
because the JDK version is not available in FIPS mode

(cherry picked from commit f97aa74)
…ns to resolve issue with mismatched generated method signatures.

(cherry picked from commit 5c1edfa)
(cherry picked from commit 7b0ad19)
…aggressive connection release

(cherry picked from commit 83a88f6)
gavinking and others added 13 commits June 4, 2025 17:21
this was happening for multi-column references, but not for single columns

(cherry picked from commit b6e5d6f)
(cherry picked from commit de5c9cd)
(cherry picked from commit 671f839)
(cherry picked from commit 0990682)
(cherry picked from commit 50440e0)
and clean up some error messages

(cherry picked from commit 3189f0e)
Also fix hsqldb's param rendering

(cherry picked from commit 47f4af9)
(cherry picked from commit f6c7d64)
@mbellade mbellade merged commit fa1141c into hibernate:7.0 Jun 4, 2025
3 of 7 checks passed
@mbellade mbellade deleted the 7.0-backports branch June 4, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.