I have some JPA module which includes entities using @Index and some code using EntityManagerFactory etc. that is currently depending directly on OpenJPA. What is a good way to make it independent of the JPA implementation without limiting it to Java 7?
Basically, I'm looking for some implementation-neutral JPA 2.1 spec jar. Is there such a thing? If my intent makes no sense, please tell me why.