Code example for UnknownUnwrapTypeException

0
		else if ( ConnectionProvider.class.isAssignableFrom( unwrapType ) ||
				actualConnectionProvider.getClass().isAssignableFrom( unwrapType ) ) {
			return (T) getActualConnectionProvider(); 
		} 
		else { 
			throw new UnknownUnwrapTypeException( unwrapType );
		} 
	} 
 
	public void configure(Properties props) throws HibernateException {
	} 
 
	public Connection getConnection() throws SQLException {
		XaTransactionImpl currentTransaction = XaTransactionManagerImpl.getInstance().getCurrentTransaction();
		if ( currentTransaction == null ) {
			isTransactional = false;
			return actualConnectionProvider.getConnection();
		} 
		else { 
			isTransactional = true;
Stop searching for code, let great code find you!  Add Codota to your java IDE