I have a Persistence session factory set up. I can right-click and select Generate Persistence Mapping from Database and introspect the db. I can also run a JDBC console and select from tables. It all works correctly.
BUT, when I try to run the HQL console to test something, I get a bunch of output saying it's connecting, and then I get
Feb 24, 2010 3:47:52 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Could not instantiate cache implementation : Second-level cache is not enabled for usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]
Session is not created
Query is not prepared
No matter what I try, I get the last two lines from here on.
Any ideas what I'm doing wrong?