aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Referential Integrity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Referential Integrity" Watch "Referential Integrity" New topic
Author

Referential Integrity

Yevgen Bushuyev
Greenhorn

Joined: Dec 10, 2002
Posts: 9
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Referential Integrity