Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » unwrap jdbc connection
unwrap jdbc connection [message #656173] Thu, 24 February 2011 13:00 Go to next message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 807
Registered: July 2009
Senior Member
According to this article it is possible to unwrap the JDBC connection from an entitymanager in JPA 2.0:
http://wiki.eclipse.org/EclipseLink/Examples/JPA/EMAPI#Getti ng_a_JDBC_Connection_from_an_EntityManager

However, executing the call on Eclipselink 2.0.2 results in this:

javax.persistence.PersistenceException: Provider-does-not-support-the-call (There is no English translation for this message.)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.unwra p(EntityManagerImpl.java:2270)

Has this been introduced later than 2.0.2?

Tom
Re: unwrap jdbc connection [message #656212 is a reply to message #656173] Thu, 24 February 2011 15:12 Go to previous message
Tom Eugelink is currently offline Tom EugelinkFriend
Messages: 807
Registered: July 2009
Senior Member
Works in 2.2.0.

On 24-2-2011 14:00, tbee wrote:
> However, executing the call on Eclipselink 2.0.2 results in this:
>
> javax.persistence.PersistenceException: Provider-does-not-support-the-call (There is no English translation for this message.)
> at org.eclipse.persistence.internal.jpa.EntityManagerImpl.unwra p(EntityManagerImpl.java:2270)
Previous Topic:execute update
Next Topic:Custom reverse engineering strategy
Goto Forum:
  


Current Time: Thu Nov 27 16:26:38 GMT 2014

Powered by FUDForum. Page generated in 0.02610 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software