Spring Does JPA data require Eclipse and Hibernate reference?

I updated Spring data from 1.7.1 to 1.9.0 and instantly got dependency and compilation errors:

Fatal error: java.lang.RuntimeException: com.sun.tools.javac.code.Symbol $ CompletionFailure: class file for org.hibernate.Scrollable No results found

For various reasons (both technical and political), we use Eclipse Link as our JPA provider. However, it seems that the class org.springframework.data.jpa.provider.PersistenceProvidernow contains static hibernation references and public jpa classes.

import org.apache.openjpa.enhance.PersistenceCapable;
import org.apache.openjpa.persistence.OpenJPAPersistence;
import org.apache.openjpa.persistence.OpenJPAQuery;
import org.apache.openjpa.persistence.jdbc.FetchDirection;
import org.apache.openjpa.persistence.jdbc.JDBCFetchPlan;
import org.apache.openjpa.persistence.jdbc.LRSSizeAlgorithm;
import org.apache.openjpa.persistence.jdbc.ResultSetType;
import org.eclipse.persistence.jpa.JpaQuery;
import org.eclipse.persistence.queries.ScrollableCursor;
import org.hibernate.ScrollMode;
import org.hibernate.ScrollableResults;
import org.hibernate.ejb.HibernateQuery;

I'm confused - I cannot find links to Hibernate, the exclusive provider of JPA. In this case, we need to include the hibernate and eclipse link (or the link to the eclipse bin and rewrite large chunks of other code) to use 1.9?

+4
1

, . , OpenJPA Hibernate . , 1.7.1 , .

- ? , , , , .

0

Source: https://habr.com/ru/post/1615215/


All Articles