persistence@glassfish.java.net

Re: how to obtain JDBC connection from JPA entity manager?

From: Mitesh Meswani <mitesh.meswani_at_oracle.com>
Date: Mon, 07 Jun 2010 12:19:39 -0700

Why do you need to get to native connection? To execute a custom SQL,
did you try using EnetityManager.createNativeQuery("custom sql")?

-Mitesh
EclipseLink On 6/7/2010 12:44 AM, Sarah kho wrote:
> Hi,
>
> Can you please let me know how I can obtain JDBC connection or a JDBC
> Statement when I am using JPA/ EclipseLink?
>
> Thanks.