This week's book giveaway is in the Raspberry Pi forum.
We're giving away four copies of Getting started with Java on the Raspberry Pi and have Frank DelPorte on-line!
See this thread for details.
Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Problem while inserting into the table

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you show us your code?
 
Praveen Chadichal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic