-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Cleanup JPA api so we can remove Http.Context #8616
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
Conversation
|
Question about following error: I did remove the |
|
Seems there is no way, I just removed the link like other did before for other links. |
marcospereira
left a comment
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.
I think we only need to add an explanation on our migration guide.
Yeah, all the docs are built together. Anyway, removing the link does not look like an issue to me. |
|
Done 👍 Added note to migration guide. |
marcospereira
left a comment
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.
Thank you, @mkurz.
|
|
||
| ## JPA removals and deprecations | ||
|
|
||
| The class `play.db.jpa.JPA`, which has been deprecated in Play 2.6 already, has finally been removed. Have a look at the [[Play 2.6 JPA Migration notes|JPAMigration26]] if you haven't yet. |
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.
👍
Reviewing per commit should be easiest.
The class
play.db.jpa.JPAwas deprecated in 2.6 already, lets remove it.I deprecated more methods which relied on the
JPAEntityManagerContextThreadLocal (so we can remove that in future as well). In futureJPAApionly haswithTransaction(...)left withFunctions orConsumers which always provide theEntityManager.@Transactionalshould have been deprecated in 2.6 already - it was removed from the docs and is now replaced by injecting aJPAApi.