Hibernate and HQL console

Hi,
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?

Thanks
Gerardo

1 comment

Seems like you are looking for this:

http://docs.jboss.org/hibernate/stable/core/reference/en/html/performance.html#performance-cache

If the required properties are set in your configuration then please
provide it for further investigation.


On 25.02.2010 1:50, llappall wrote:

Hi, 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?

>

Thanks Gerardo

>

--- Original message URL:
http://www.jetbrains.net/devnet/message/5257335#5257335


0

Please sign in to leave a comment.