I have some *.hbm.xml files that are placed in the same folder at the hibernate.cfg.xml file. Now, I want to map some other *.hbm.xml files that are in a subfolder of this folder. How could I do it? Thanks!
here's part of my hibernate.cfg.xml:
<hibernate-configuration>
<session-factory name="MySessionFactory">
<...
Hi every one,
I want use second level cache in my hibernate Project but I just know a little about hibernate second level cache, can any one explain how shoud I use this in my code and what configuration and .jar file I need?
I set these setting to my hibernate.cfg.xml file
<property name="hibernate.cache.use_query_cache">true</propert...
We have this hibernate.cfg.xml file. Is there a way to tell Hibernate to just scan a directory instead of having to add an entry here for each class?
<hibernate-configuration>
<session-factory>
<mapping class="com.abc.domain.model.A" />
<mapping class="com.abc.domain.model.B" />
<mapping class="com.abc.domain.model...
Below an illustration of my project hierarchy
When i try to connect my file_name.java file to hibernate i'm getting these errors
Exception in thread "main" org.hibernate.HibernateException: Could not instantiate cache implementation
at org.hibernate.cache.CacheFactory.createCache(CacheFactory.java:64)
at org.hibernate.impl.Se...
here is the config file for mysql
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/test</property>
<property name="hibernate.connection.username">root</property>
<property na...
Actually I deployed my grails application on two tomcat instances. Now I ran into a problem. My Quartz Job needs to be clustered.
I read the plugin documentation and found a possibility to cluster the Quartz jobs in combination with the database.
Therefore I have to create a hibernate mapping ('grails-app/conf/hibernate/hibernate.cfg.x...