Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Insert in multiples tables not working

 
Andre Froes
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone, i got some trouble when I try to make a Set in my hibernate project, and i can't even undestand why !!
here it is:
My entity:


My hbm:


My attempt to make it work ^^:


The error:


if I try that code without the Set<> it works and register in my database solicitacao, if I try adding the set, that exception pop up;
 
Andre Froes
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just configured my config to show the sql and format it and runned that same example:


The error still the same, but the sql is going wrong. This is what it's trying to do:



it is trying to update the dependent table, not save.

I apreciate any help
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic