Dear Technical stafff,
I am using Message Driven Bean ans Hibernate 3.1. In the onMessage() method I am calling one method that will store the state of the object in the database using hibernate. There is no complexity in the method. I am simply calling session.save(Customer_tab) . The application is running and it is throwing an exception that "
org.hibernate.HibernateException:identifier of an instance of com.rrs.corona.Customer_Tab was altered from 24 to 27 " .
I furnish below the my code snnippet.
Session session = HibernateUtil.getSessionFactory().getCurrentSession();
session.beginTransaction() ;
Customer_tab customerTab = new Customer_tab() ; // for only the table Customer_tab
logger_.info(" From the Hibernate Manager class ") ;
/*
customerTab.setAddress("someAdrs");
customerTab.setAddress_type("address_type");
session.save(new Customer_tab());
//session.save(customerTab) ;
logger_.info(" Saving the data in the database ") ;
session.getTransaction().commit(); // commits for database transaction
session.close();
Please help me to resolve the issue. I want to know wheather is a bug in Hibernate or not .
Please respond me in
piku.mishra@gmail.com