Make Hibernate not slow as hell

It was taking 10 seconds just to create a Session object. Turns out that Hibernate/JDBC was running a few hundred queries to determine the types of everything in the database, for some reason.