Skip to content
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

Merged

Conversation

ljnelson
Copy link
Member

@ljnelson ljnelson commented Oct 4, 2023

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 a persistence.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.

…rom JpaExtension

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson added enhancement New feature or request task To do MP P2 cdi CDI jpa/jta integration java Pull requests that update Java code 4.x Version 4.x labels Oct 4, 2023
@ljnelson ljnelson self-assigned this Oct 4, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 4, 2023
@ljnelson ljnelson added this to Sprint Scope in Backlog Oct 4, 2023
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
…nfoBean before it is placed into service; adjusts Hibernate integration to make use of this facility

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
…ernate-cdi

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
…JTA association would have its autoCommit status set to false in certain situations

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
@ljnelson ljnelson requested a review from tjquinno October 5, 2023 04:36
@ljnelson
Copy link
Member Author

ljnelson commented Oct 5, 2023

@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.

@ljnelson ljnelson marked this pull request as ready for review October 5, 2023 05:00
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Copy link
Member

@arjav-desai arjav-desai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ljnelson ljnelson merged commit bfe6099 into helidon-io:main Oct 6, 2023
12 checks passed
Backlog automation moved this from Sprint Scope to Closed Oct 6, 2023
@ljnelson
Copy link
Member Author

Related to #4928, and may (finally) fix it.

dalexandrov pushed a commit to dalexandrov/helidon that referenced this pull request Oct 17, 2023
…sion from JpaExtension (helidon-io#7719)

* Switches default JPA CDI portable extension to PersistenceExtension from JpaExtension

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x Version 4.x cdi CDI enhancement New feature or request integration java Pull requests that update Java code jpa/jta MP OCA Verified All contributors have signed the Oracle Contributor Agreement. P2 task To do
Projects
Backlog
  
Closed
Development

Successfully merging this pull request may close these issues.

None yet

2 participants