Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Removing from collection in many-to-one bi-directional mapping not working

 
Theodore David Williams
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a many-to-one bidirectional mapping but when I try and delete from the collection its not working.

Table entity has a set of columns, each column points back to the table



deleting:


The problem I run into is that I get an error saying that "Table_Id" cannot be null. So setting the table to null worked but it seems like removing the column from the 'Set' of columns did not actually delete it from the DB.

Any ideas?
 
James Sutherland
Ranch Hand
Posts: 553
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>> column.setTable(null);

Remove this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic