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

Employee.java imports javax.persistence-api.* not found #117

Closed
bsheps opened this issue Jun 15, 2023 · 2 comments
Closed

Employee.java imports javax.persistence-api.* not found #117

bsheps opened this issue Jun 15, 2023 · 2 comments

Comments

@bsheps
Copy link

bsheps commented Jun 15, 2023

Following the spring rest tutorial from here: https://spring.io/guides/tutorials/rest/

Example code for nonrest/src/main/java/payroll/Employee.java does not work for java 17 (default version) initializer project.

May have found a workaround using jakarta.persistence-api instead. See here:

https://stackoverflow.com/questions/60021815/why-has-javax-persistence-api-been-replaced-by-jakarta-persistence-api-in-spring

@osBins
Copy link

osBins commented Jan 5, 2024

Maintainers, please update the tutorial page. I just spent 1 hour figuring out what was wrong with my IDE.

@robertmcnees
Copy link
Contributor

Thanks for opening this issue! Getting the imports right is something we need to change. I'm going to close this issue as a duplicate since we have #116 open.
PR #127 should close this issue.

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

No branches or pull requests

3 participants