We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905f878 commit 0bbedb7Copy full SHA for 0bbedb7
ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionPool.java
@@ -245,15 +245,18 @@ private void initialiseDatabase() throws SQLException {
245
*/
246
@Override
247
public boolean isWrapperFor(Class<?> arg0) {
248
- return false;
+ return ConnectionPool.class.isAssignableFrom(arg0);
249
}
250
251
/**
252
* Not Implemented.
253
254
255
public <T> T unwrap(Class<T> arg0) throws SQLException {
256
- throw new SQLException("Not Implemented");
+ if (ConnectionPool.class.isAssignableFrom(arg0)) {
257
+ return (T) this;
258
+ }
259
+ throw new SQLException("Not a wrapper for " + arg0.getName());
260
261
262
0 commit comments