File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Referential Integrity

Yevgen Bushuyev

Joined: Dec 10, 2002
Posts: 9
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...

I agree. Here's the link:
subject: Referential Integrity
It's not a secret anymore!