Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
<hibernate-mapping>
<class name="WebUser" table="webuser">
<id name="userID" column="userID" type="int">
<generator class="native"/>
</id>
<property name="userName" column="userName" type="string" unique="true" not-null="true" access="field"/>
<property name="userRealName" column="userRealName" not-null="true" type="string" access="field"/>
<property name="userPassword" column="userPassword" not-null="true" type="string" access="field"/>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: MySql 4.0.15
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
First of all sorry for my english.
I have some problems with the caching. Above you see the mapping document of WebUser class. As you can see there is no relation from WebUser to the other classes, also there is no relation from other classes to the WebUser.
I disable the second-level cache by
<property name="hibernate.cache.use_second_level_cache">false</property>
in the hibernate.cfg.xml file.
Problem: I start my application. i get the web users from database while starting the application. then i delete one web user record from the database. then i list the web users from my application and see that the deleted record is still here. What can i do the handle this situation?