Skip to content

Merge 8.0.x into 8.1.x - #17313

Merged
codeconsole merged 17 commits into
apache:8.1.xfrom
codeconsole:merge/8.0.x-into-8.1.x
Dec 4, 2026
Merged

codeconsole merged 17 commits into
apache:8.1.xfrom
codeconsole:merge/8.0.x-into-8.1.x

Conversation

@codeconsole

Copy link
Copy Markdown
Contributor

Merges 8.0.x into 8.1.x, which brings 8.0.x's #16720 (unique-group keys for enum and composite association columns, Hibernate 7), #16559 (nested association joins in criteria queries, tests), #16940 (upgrade note for the Hibernate 7 list() fetch mode join), #16976 (Grails-owned Spring Security in the threat model) and #17312 (the GSP Spring Boot script example runs against the branch's snapshot) to this line.

No conflicts. The merge changes only files those pull requests change, including three Hibernate 7 files that #16720 changed in a merge commit on its branch (23d85bc). No dependency, Gradle or .sdkmanrc version changes outside the GSP script example, whose @Grab and .sdkmanrc still name 8.0.x's 8.0.1-SNAPSHOT, Groovy 5.1.4 and Java; a follow-up moves them to this branch's versions.

jamesfredley and others added 17 commits October 21, 2026 21:46
An enum unique group that includes a multi-column association no longer asks for a single column name and fails datastore startup. Each configured column of the group member is added to the unique key. A property with no explicit columns keeps the previous fallback.

Fixes apache#16713

Assisted-by: Sisyphus:grok-4.7
A unique group declared before a composite association was keyed on
parent_id, because those association columns did not exist yet. Resolve
the group once Hibernate's second pass has populated them.

Assisted-by: sisyphus-cursor-grok:grok-4.7
Unique-group members use the shared column resolver, and both key entry
points wait for Hibernate's second pass. The 8.0.x constructors stay.

Assisted-by: sisyphus-cursor-grok:grok-4.7
The in-tree grails-spring-security modules are first-party on 8.0.x. Keep upstream Spring Security and Shiro external, and treat defects in the Grails integration as in scope.

Assisted-by: opencode:grok-4.7
Keep the shared unique-group column resolver and the second-pass wait.

Assisted-by: opencode:grok-4.7
…teria queries (apache#16559)

Tests for the joins of association blocks in Hibernate 7 criteria queries: nested left joins, a nested block without a join type, blocks of the same name at two levels, an outer left join of the same name, detached criteria, subqueries, and an order on a projection alias with the name of an association block.
…#16940)

* docs: upgrade note for the Hibernate 7 list() fetch mode join (apache#16898)

Refs apache#16939

Claude-Session: https://claude.ai/code/session_01Dmki4RzWwreEC2GkkyFnvL

* docs: show the inner join of the list() fetch join note on the criteria query, and name both restrictions (apache#16961)

Addresses the review of apache#16940: list() takes no join type, so JoinType.INNER goes on the join of a criteria query,
with the jakarta.persistence.criteria import; the restriction for players is isNotEmpty, as isNotNull covers club.

Claude-Session: https://claude.ai/code/session_01Dmki4RzWwreEC2GkkyFnvL

---------

Co-authored-by: James Daugherty <jdaugherty@jdresources.net>
…ticolumn-8.0.x

Resolve every column of an enum unique-group member
…security-8.0.x

docs: include Grails-owned Spring Security in the threat model
The script grabbed org.grails:grails-gsp-spring-boot:7.0.0-SNAPSHOT from
repo.grails.org and pinned Groovy 4 and Spring Boot 3.5, so it ran an old
7.0 snapshot rather than this line. It now grabs the released
org.apache.grails:grails-gsp-spring-boot:8.0.0 from Maven Central.

Two changes make it start: Groovy is excluded from the grab, because the
groovy command already supplies it and refuses a second copy at another
version, and Application no longer proxies its bean methods, because a
CGLIB proxy cannot be defined in the class loader of a script under
Spring Framework 7.

The .sdkmanrc now matches the repository: the Java of the root
.sdkmanrc and the Groovy of dependencies.gradle. The unused Spring Boot
CLI entry is removed.
The script now grabs 8.0.1-SNAPSHOT from the Apache snapshot repository
instead of the 8.0.0 release, so it runs what is on 8.0.x, and a local
publishToMavenLocal is picked up through Grape's default ~/.m2 resolver.

setSnapshotGrailsVersion.sh, which the post-release step runs with the
next version, now moves the script's @grab to that snapshot together with
projectVersion, and fails if the @grab line no longer matches.
…script-8.0.x

8.0 (fix): make the GSP Spring Boot script example run
@codeconsole
codeconsole merged commit da566d3 into apache:8.1.x Dec 4, 2026
22 of 92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants