Need help unwrapping a Connection proxy to get the underlying OracleConnection to do a one-off call to a stored proc with a UDT. I checked the BorrowedConnectionProxy, but the getWrappedConnection method doesn't seem to be available in 3.2.0. Also tried casting to oracle.java.OracleConnection with no luck. How can I get at the underlying jdbc Connection object, not the proxy?
Hibernate version: 3.2.0
Full stack trace of any exception that occurs: java.lang.ClassCastException: $Proxy0
Name and version of the database you are using: Oracle 10g
Thanks,
Chris
|