I did some more work on this and narrowed down the hang problem to this code:

```
try {
			session.load( Simple.class, new Long(-1) );
			fail();
		}
		catch(ObjectNotFoundException onfe) {
			
			// this is correct
		}
```

The problem is that the ObjectNotFound exception occurs and the "session" transaction is still waiting for 
a commit or rollback. If I add this to the body of the catch, the test will run successfully.

```
if (  getDialect() instanceof TeradataDialect )
	session.getTransaction().commit();
```