OK, I'll try it. It's never very encouraging though when your message just
disappears - is there a Jira or Bugzilla or some similar such issue tracker for
JCPs etc at Sun? Or does the email address have a public archive even?
Craig L Russell on 16/11/07 13:43, wrote:
Hi Adam,
It is certainly possible to request an enhancement of the JPA
specification. It is currently being revised for JPA 2.0.
You can send comments to [EMAIL PROTECTED]
Regards,
Craig
On Nov 16, 2007, at 4:14 AM, Adam Hardy wrote:
I found that the JDBC connection is obtainable from OpenJPA
OpenJPAEntityManager kem = OpenJPAPersistence.cast(em);
Connection conn = (Connection) kem.getConnection();
however I am coding up an implementation-agnostic testing framework
using JUnit4 and JPA, and I'd like to be able to obtain the
connection from the JPA API.
The framework is designed to create a schema, insert clean test data
and if desired, clean up afterwards. It also has the facility to
manage test data stored in the XML, via DbUnit, so it's something that
is intended to be highly useful.
Is there a possibility that this may be added in the future?
The work-around is to abstract the connection retrieval code into
interfaces and establish a configuration option to handle it, but if
this is appearing in the JPA API in the next year or so, I could just
hard-code it for now.
Thanks
Adam
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!