Code Comments
Programming Forum and web based access to our favorite programming groups.Assume I defined (at least) two SQL tables. The first table contains a forei gn key of the second. The primary key of the second table is defined similar to CREATE TABLE ..... ADD FOREIGN KEY(customer_id) REFERENCES customer (customer_id) ON DELETE CAS CADE; Pay attention to the "DELETE CASCADE". Thus if I delete a record of the seco nd table automatically the referenced record in the first table is deleted as well. Ok, now I define for each of the tables (resp. possible records) an EntityBe an. What do I have to change in the setup/coding of each of the two EntityBeans in order to treat the foreign key REFERENCE correctly? Do I really have to do nothing more? That would mean an EntityBean would recognize the reference by itself withou t help. I cannot believe that. Does someone have an experience with that scenario? Arnold
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.