Reputation: 5111
I need an oracle.jdbc.OracleConnection to directly work with ORACLE's SDO_GEOMETRY.
I have an Object that is of type: class com.zaxxer.hikari.proxy.ConnectionJavassistProxy
My debugger says its value is: ConnectionJavassistProxy(1082639682) wrapping oracle.jdbc.driver.T4CConnection@220c1ab2
Note that T4CConnection implements oracle.jdbc.OracleConnection
So if I can get access to it, I will have what I need.
Upvotes: 3
Views: 1756
Reputation: 1650
OracleConnection oracleConnection = connection.unwrap(OracleConnection.class);
Upvotes: 10