Hiperman wrote:
So hier mal die Hibernate.cfg.xml
Code:
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/employeecatalog</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.pool_size">3</property>
<property name="show_sql">true</property>
<mapping resource="hibernateproject/Employee.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Hallo,
wenn du in der cfg.xml Datei nichts angibst, so verwendet Hibernate meines Wissens den EHCache, also einen second level cache.
Setze mal die Eigenschaft
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
in die config- Datei und probier es nochmal