When I upgraded to EclipseLink 3 by referenceing org.eclipse.persistence:org.eclipse.persistence.jpa:3.0.3 instead of 2.7 which I had
before, I can no longer use any classes in the jakarta.persistence package, even indirectly.
The errors I see are:
Cannot resolve method 'setHint' in 'org.eclipse.persistence.jpa.JpaQuery'
and
Cannot access jakarta.persistence.TypedQuery
I don't understand why. It seems that use of the jakarta.persistence-api module is not being allowed but my application doesn't use any classes from that module directly so I don't think my app should open it.