Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Referential Integrity

 
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