Say I have a DOCUMENT table in the RDBMS. It has a column author_id which references to table USER, column id.
I also have two entity beans, DocumentEJB and UserEJB. How would I go about relating the two beans? I don't want to just have a DocumentEJB.setUserID(). What would be a good way to make the entities relate more? Please give me some ideas... Maybe save the home interface? I'm really not sure what to do here, so any ideas would be greatly appreciated.
I just figure there has to be a way to relate the objects at more than just the data tier...
-Pat
-
RDBMS relations in entity beans (3 messages)
- Posted by: Patrick Lightbody
- Posted on: November 03 2000 19:13 EST
Threaded Messages (3)
- RDBMS relations in entity beans by viji v on November 06 2000 20:50 EST
- RDBMS relations in entity beans by Anuj Vohra on November 10 2000 15:56 EST
- RDBMS relations in entity beans by Sachin Pradhan on November 14 2000 18:31 EST
-
RDBMS relations in entity beans[ Go to top ]
- Posted by: viji v
- Posted on: November 06 2000 20:50 EST
- in response to Patrick Lightbody
Hi pat,
Why dont u go for a BMP where u can access both the tables ?
Viji -
RDBMS relations in entity beans[ Go to top ]
- Posted by: Anuj Vohra
- Posted on: November 10 2000 15:56 EST
- in response to Patrick Lightbody
Read "Persistence Using reflection" that was presented in OOPSLA. Also read "Crossing Chasms". These patterns will show you how to use object ids and association tables to get a very graceful solution to this problem.
Regards
Anuj -
RDBMS relations in entity beans[ Go to top ]
- Posted by: Sachin Pradhan
- Posted on: November 14 2000 18:31 EST
- in response to Anuj Vohra
Anuj,
Would you mind posting the URL(s) for this OOPSLA presentations you cited.
Thanks - Sachin.