-
Notifications
You must be signed in to change notification settings - Fork 566
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
[4.x] Switches default JPA CDI portable extension to PersistenceExtension from JpaExtension #7719
[4.x] Switches default JPA CDI portable extension to PersistenceExtension from JpaExtension #7719
Conversation
…rom JpaExtension Signed-off-by: Laird Nelson <[email protected]>
Signed-off-by: Laird Nelson <[email protected]>
…nfoBean before it is placed into service; adjusts Hibernate integration to make use of this facility Signed-off-by: Laird Nelson <[email protected]>
…ernate-cdi Signed-off-by: Laird Nelson <[email protected]>
…JTA association would have its autoCommit status set to false in certain situations Signed-off-by: Laird Nelson <[email protected]>
@tjquinno added you as reviewer since you were kind enough to review the "new machinery" back in the day. Obviously check the Github actions etc. and if they're borked don't bother wasting your time; I'll fix whatever breaks first. Any early eyes-on from you would be great. |
Signed-off-by: Laird Nelson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related to #4928, and may (finally) fix it. |
…sion from JpaExtension (helidon-io#7719) * Switches default JPA CDI portable extension to PersistenceExtension from JpaExtension Signed-off-by: Laird Nelson <[email protected]>
This PR "turns on" the "new" JPA machinery that has been lying somewhat dormant in Helidon since 3.x. The "old" machinery remains, since the new machinery is a very different approach, and there may be production cases where the old machinery needs to be switched back on in case old behavior was being relied upon.
This PR also adds deprecation notices to various classes (most of which are internal anyway but it's good practice).
This PR also ensures that any usage of the
CDISEJtaPlatform
in combination with the ("new machinery")PersistenceExtension
will cause the appropriate Hibernate-specific connection handling policy to be in effect, even if it isn't present in apersistence.xml
.This PR also fixes a setting-the-
autoCommit
-property-on-a-Connection
bug that may be responsible for blocking #7448. We'll see.Documentation impact: none.