• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in hibernate while accessing rdbms database

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We Are using hibernate with relational database having cascade constraints on table.
Do we need same constraints mapping in hbm file to access the database?
 
vijay pangare
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We Are using hibernate with relational database having cascade constraints on table.
As well as same thing in hibernate mapping file also.
But while doing this we are getting error as "Cannot add or update a child row: a foreign key constraint fails (`test_36675`.`sg_shipment`, CONSTRAINT `sg_shipment_ibfk_4` FOREIGN KEY (`STAGE_ID`) REFERENCES `sg_shipment_stage` (`STAGE_ID`) ON DELETE CASCADE ON UPDATE NO ACTION)"
 
reply
    Bookmark Topic Watch Topic
  • New Topic