scalajpa
scalajpa copied to clipboard
Provide a mechanism to get the underlying EntityManagerFactory and EntityManager
I'm porting my implementation of LINQ for Java (called Jinq) to Scala, and I was thinking of adding support for scalajpa. But all my existing code talks directly to JPA through the EntityManager and EntityManagerFactory (the framework is written in Java, after all).
Would it be possible for you to provide some sort of mechanism for returning the underlying Java EntityManagerFactory and EntityManager of a ScalaEntityManager and ScalaEMFactory? Then I can write some sort of bridge that would let my project interface with your project, while still letting my code use the Java JPA stuff for its internals.