Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mkurz
Copy link
Member

@mkurz mkurz commented Sep 19, 2018

Reviewing per commit should be easiest.

The class play.db.jpa.JPA was deprecated in 2.6 already, lets remove it.
I deprecated more methods which relied on the JPAEntityManagerContext ThreadLocal (so we can remove that in future as well). In future JPAApi only has withTransaction(...) left with Functions or Consumers which always provide the EntityManager.
@Transactional should have been deprecated in 2.6 already - it was removed from the docs and is now replaced by injecting a JPAApi.

@mkurz
Copy link
Member Author

mkurz commented Sep 19, 2018

Question about following error:

[error] Bad relative link api/java/play/db/jpa/JPA.html at /home/travis/build/playframework/playframework/documentation/manual/releases/release24/migration24/Migration24.md:206
[error] | [`JPA`](api/java/play/db/jpa/JPA.html) | [`JPAApi`](api/java/play/db/jpa/JPAApi.html) | |
[error]                      ^

I did remove the play.db.jpa.JPA and Migration24.md points to its javadocs page.
How can I ignore this error?

@mkurz
Copy link
Member Author

mkurz commented Sep 19, 2018

Seems there is no way, I just removed the link like other did before for other links.

Copy link
Member

@marcospereira marcospereira left a 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.

@marcospereira
Copy link
Member

Seems there is no way, I just removed the link like other did before for other links.

Yeah, all the docs are built together. Anyway, removing the link does not look like an issue to me.

octonato pushed a commit that referenced this pull request Sep 20, 2018
Backports #8617 + fixed two links which are going to be fixed in #8616 for the master branch already.
@mkurz
Copy link
Member Author

mkurz commented Sep 20, 2018

Done 👍 Added note to migration guide.

Copy link
Member

@marcospereira marcospereira left a 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.
Copy link
Member

Choose a reason for hiding this comment

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

👍

@marcospereira marcospereira merged commit cb5c0cc into playframework:master Sep 20, 2018
@mkurz mkurz deleted the deprecateJPAstuff branch September 20, 2018 17:00
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.

2 participants