Jason T. Greene wrote:
BTW let's look at the actual use cases here, and the solutions:
1. Native/Direct use of hibernate (no JPA)
- User either bundles their version or imports one on the server
(perhaps creating a module if they like)
2. Using a JPA provider other than our Hib 4 one
- 7.1 = javax.persistence.spi.PersistenceProvider
3. Using JPA annotations in non JPA/EE applications (Spring)
- Stuart's patch (skip EE annotations on things we don't identify as
an EE component)
Feel free to add one.'"
4. I have a META-INF/persistence.xml and I want to hide that from the
server (I'll bootstrap the PU through
LocalContainerEntityManagerFactoryBean).