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

Using hibernate-jpa-2.1-api:1.0.0 instead of jakarta-persistence-api:2.2.3 #30

Open
mklueh opened this issue Oct 10, 2021 · 3 comments
Open

Comments

@mklueh
Copy link

mklueh commented Oct 10, 2021

I've included this dependency into my project and noticed errors in my code, as for example the

javax.persistence.Query.getResultStream() method was not found anymore.

It seems this dependency is using an old Hibernate JPA dependency from 2013!!

https://mvnrepository.com/artifact/org.hibernate.javax.persistence/hibernate-jpa-2.1-api

I'm not familiar with hibernate-jpa, but maybe you can simply switch to the jakarta dependencies instead or at least set the scope of that dependency to "provided"?

@lukaseder
Copy link

This is probably caused by jOOQ itself, see jOOQ/jOOQ#9641. You should be able to exclude jOOQ's transitive dependency to prevent that API from leaking onto your classpath?

@lukaseder
Copy link

For the record, jOOQ/jOOQ#9641 has been implemented in jOOQ 3.16 and will ship soon (by the end of 2021, hopefully). After that, we'll have only Jakarta dependencies, no javax dependencies from the deprecated Java EE APIs anymore.

@mklueh
Copy link
Author

mklueh commented Dec 6, 2021

@lukaseder sry for my late response, I completely forgot about it and stopped trying to get it working. Glad to hear

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

2 participants