[
https://jira.jboss.org/jira/browse/JBIDE-6001?page=com.atlassian.jira.plu...
]
Max Rydahl Andersen closed JBIDE-6001.
--------------------------------------
Resolution: Won't Fix
if the entities are referring to caching then hibernate requires some kind of cache
provider thus the error us unfortunate but expected.
NoCachingEnabledException in Console Config with Seam 2.2 DVD Store
Example
---------------------------------------------------------------------------
Key: JBIDE-6001
URL:
https://jira.jboss.org/jira/browse/JBIDE-6001
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.1.0.CR2
Reporter: Vitali Yemialyanchyk
Assignee: Vitali Yemialyanchyk
Priority: Minor
Fix For: 3.1.1
Attachments: screenshot-1.jpg
1) download Seam 2.2 DVD Store Example;
2) open dvdstore22-ejb Console Config session Factory - get exception:
org.hibernate.cache.NoCachingEnabledException: Second-level cache is not enabled for
usage [hibernate.cache.use_second_level_cache | hibernate.cache.use_query_cache]
at
org.hibernate.cache.impl.NoCachingRegionFactory.buildEntityRegion(NoCachingRegionFactory.java:66)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:261)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.console.ConsoleConfiguration$4.execute(ConsoleConfiguration.java:554)
at
org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:98)
at
org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:549)
at
org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at
org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at
org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira