Skip to content

fix: make JSONB value types Serializable for Ehcache L2 cache (backport #24051 → patch/2.42.5.1)#24175

Merged
netroms merged 1 commit into
patch/2.42.5.1from
hotfix/ehcache-serializable-jsonb-types-2.42.5.1
Jun 9, 2026
Merged

fix: make JSONB value types Serializable for Ehcache L2 cache (backport #24051 → patch/2.42.5.1)#24175
netroms merged 1 commit into
patch/2.42.5.1from
hotfix/ehcache-serializable-jsonb-types-2.42.5.1

Conversation

@netroms

@netroms netroms commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Backports #24051 to the 2.42.5.1 patch/hotfix line.

Makes the JSONB value types RenderingObject and ApiTokenAttribute implement Serializable so they survive Ehcache 3.12's SerializingCopier in the L2 second-level cache — a missing Serializable throws NotSerializableException at runtime (the ApiTokenAttribute regression).

Also adds CachedEntityJsonbSerializableTest, a guard test that walks the live Hibernate metamodel so any JSONB value type added to an L2-cached entity in future is checked automatically.

Clean cherry-pick of 453ae80b17a (squash of #24051) onto patch/2.42.5.1. Compiles locally; GPG-signed.

AI Assisted. Backport of #24051.

@netroms
netroms merged commit c8b5200 into patch/2.42.5.1 Jun 9, 2026
11 checks passed
@netroms
netroms deleted the hotfix/ehcache-serializable-jsonb-types-2.42.5.1 branch June 9, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants