Re: Foriegn Key without foreign keys ??
Emmanuel Eze <[email protected]> Tue, 4 Oct 2005 13:23:21 +0100
| Newsgroups | gmane.comp.java.sun.ejb.general |
|---|---|
| Message-ID | <[email protected]> |
That should be perfectly possible though not elegant. Your CMP does not have any physical relation with your database so you should be able to model FK / PK constraints as you wish. You may also wish to look at the Domain Object Pattern. Cheers Emmanuel Eze Quoting Thomas Joseph <[email protected]>: > Hi, > I sent this matter before, but there was no response so I am resending it... > > I have a requirement where I want to have cmp. Logically, the databases does > have foreign keys, however for some reasons the foreign keys have not been > implemented in the database. Similarly the Primary keys have been implemented > as Unique keys. Now I want to wrap this database with CMP Entity beans. > > Is that possible without any hassles. Can I find some references regarding > this. Are there any good design patterns/ suggestions regarding this??? > > Thanks in advance!!! > -------- > Regards > Thomas Joseph > > =========================================================================== > To unsubscribe, send email to [email protected] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [email protected] and include in the body of the message "help". > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ from the University of Hull Centre for Internet Computing http://www.cic.hull.ac.uk/ =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".