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

Package imports for Jakarta are not correct with latest version of Spring Boot #116

Closed
fascynacja opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels

Comments

@fascynacja
Copy link

I came to this repo from tutorial: https://spring.io/guides/tutorials/rest/. In the repo and tutorial there is usage of Java EE libriaries for persistence. Anyhow when I try to use the newest version of Spring (3.1.0-SNAPSHOT) I do not see the persistence-api dependency. It looks like there is Jakarta persistence on the classpath. I was trying to follow the tutorial and I have failed on the first step because of that. Maybe it would be helpfull to add a small mention in the tutorial that in the newest version of Spring the imports need to look like:

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
@robertmcnees robertmcnees changed the title Ja Package imports for Jakarta are not correct with latest version of Spring Boot May 9, 2024
@robertmcnees robertmcnees self-assigned this May 16, 2024
@robertmcnees
Copy link
Contributor

Thanks @fascynacja for the issue. This should be fixed with PR #127. If you still have problems please reply to this issue or open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants