diff --git a/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java b/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java index 9e35188d0..577340c9b 100644 --- a/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java +++ b/jpa/boot-read-replica-postgresql/src/main/java/com/example/demo/readreplica/config/routing/RoutingDataSource.java @@ -23,26 +23,4 @@ public static void setReplicaRoute() { protected Object determineCurrentLookupKey() { return routeContext.get(); } - - public boolean isWrapperFor(Class iface) throws java.sql.SQLException { - // TODO Auto-generated method stub - return iface != null && iface.isAssignableFrom(this.getClass()); - } - - public T unwrap(Class iface) throws java.sql.SQLException { - // TODO Auto-generated method stub - try { - if (iface != null && iface.isAssignableFrom(this.getClass())) { - return (T) this; - } - throw new java.sql.SQLException("Auto-generated unwrap failed; Revisit implementation"); - } catch (Exception e) { - throw new java.sql.SQLException(e); - } - } - - public java.util.logging.Logger getParentLogger() { - // TODO Auto-generated method stub - return null; - } }