Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate updateds a child object, even it's parent object gets exception

jai shreeram
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have FundCode as one object, FundCritieria is a child object.

I have inserted first time one fundCode object with Child object FundCriteria.

Second time, I am trying to insert the same FundCode object with child object's one field modified.

I got constraint violation exception, but the child record got updated.

This operation done in webshpere application server, with CMT.

Please let me know if you have any info.

Thanks in advance.

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!