dcsimg
Retrival of Objects from persistence
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Govind_SR
Posted On:   Tuesday, September 3, 2002 12:22 AM

A, B and C are three classes, each of the classes maps to a table in database. The association between them are as follows,
A has One-to-One association with B.
B has One-to-Many association with C

If A is retrieved from the database, then B and C should also be retrieved?

Re: Retrival of Objects from persistence

Posted By:   AlessandroA_Garbagnati  
Posted On:   Tuesday, September 3, 2002 01:24 AM

Hi,

I would say that this depends on how you need to ude youe A class or, better, on what type of informacion your application need to acquire. If you need to get a piece of information that is inside the B table, then after retrieving A, you can also retrieve B.
About | Sitemap | Contact