wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Problem while inserting into the table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Problem while inserting into the table" Watch "Problem while inserting into the table" New topic
Author

Problem while inserting into the table

Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Hi,
I have something teadious issue, i donno how is this happening, The problem is i have overall 4 tables(say A,B,C,D) in which i need to manipulate the data. The thing is i only fetch data from table A insert into table B, then fetch data from B and insert into table C & D. The issue what am facing is that a UPDATE query is getting fired for the table A which actually should not happen atall since i only fetch from this table. Its something that breaking my head. M unable to get why is this happening. Can any one help me on this. I am using hibernate to do this, is it that am missing anything in the hibernate configuration. have anyone came across this issue. quick help is deeply appreciated!
Thanks in advance.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Can you show us your code?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Praveen Chadichal
Greenhorn

Joined: Apr 07, 2009
Posts: 21
Here in the below code my A table is "ApplicationEventInstance" & the table B is "EbizAppEvent" into which it is inserted.


The "convertEventInstanceToAppEvent" method will convert the ApplicationEventInstance pojo to EbizAppEvent pojo object..... here its as below:

Can you help me out on this please ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while inserting into the table
 
Similar Threads
Issue with Hibernate transaction in CMT
Hibernate with RSS Feeds.
how to insert
Table without Primary key
Parent class id value instead of child's id used incorrectly for querying Set assoc.