Skip to content

Conversation

@yrodiere
Copy link
Member

@yrodiere yrodiere commented Nov 12, 2024

  • HHH-18833: Configuration to fail bytecode enhancement instead of skipping it on unsupported models
  • HHH-18832: Bytecode enhancement skipped for entities with "compute-only" @transient properties

Backport of #9222 and #9223 to branch 6.6

This method allows custom contexts to pick the behavior they want when
a class contains getters/setters that do not have a matching field,
making enhancement impossible.

Three behaviors are available:

* SKIP (the default), which will skip enhancement of such classes.
* FAIL, which will throw an exception upon encountering such classes.
* LEGACY, which will restore the pre-HHH-16572 behavior.

I do not think LEGACY is useful at the moment, but I wanted to have
that option in case it turns out HHH-16572 does more harm than good in
Quarkus 3.15.
@yrodiere yrodiere force-pushed the HHH-18832-HHH-18833-6.6 branch from 72bd94a to 83b26b6 Compare November 13, 2024 12:02
@yrodiere
Copy link
Member Author

yrodiere commented Nov 13, 2024

Backport of #9222 and #9223 to branch 6.6

Both got approved and merged. Merging to 6.6 as well so that Quarkus can upgrade when we next release.

@yrodiere yrodiere merged commit 1ffde48 into hibernate:6.6 Nov 13, 2024
25 checks passed
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.

1 participant