I am using OpenJPA 2.1 (which implements JPA 2.0) for a command line utility. I am using classes that are new for JPA 2.0.
My compile target is Java SE 1.6
OpenJPA 2.1 comes with all JPA 2.0 javax.persistence.* interfaces/implementations.
Can I claim that my utility has no dependence on JavaEE 6?
My understanding is that JavaEE 6 is a collection of standards. So it is no different in that respect from any other random set of standards. Hence JavaEE 6 depends on JPA 2.0, but JPA 2.0 does not depend on JavaEE 6, correct?
JPA 2.0 is a an independent standard, you can use it in a standalone Java application without application server. In fact many people are using JPA in spring – which does not require any container to run.