Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Referential Integrity  RSS feed

 
Yevgen Bushuyev
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
What is the preferred way to achieve referential integrity without making columns in db nullable? I.e. i wan't to prohibit deletion of an entity if there is even nullable reference to it. I know that ejb spec says that an object should be removed from all relations before deletion, but maybe i miss something? Making checks in every ejbRemove is too tedious and errorprone...

thanx
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!