This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

StaleStateException on session.flush()  RSS feed

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to do basic insert operation using hibernate.I am using access db.My problem is that record gets saved but session.flush() throws following exception:




Update operation works fine on same db.

Here are my config and code files :
1) contact.hbm.xml



2) hibernate.cfg.xml

<?xml version='1.0' encoding='utf-8'?>


3) Contact.java (POJO)


4) MyExample.java


What would be the cause behind such behavior?
 
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I don't know enough about hibernate to add anything helpful, but I do know when searching the web for help I avoid rose india pages, and I have heard many people on here say the same.

also I am moving your thread to the hibernate forum, where you are muchj more ikely to get people who can help you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!