-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Exception
PostPosted: Thu Jan 19, 2006 3:10 am 
Newbie

Joined: Wed Nov 30, 2005 9:04 am
Posts: 8
Location: Bangalore
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

_________________
Piku Mishra


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.