Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: ref vs embeded objects
It depends on what you're trying to do. If you're design is something that uses composition, I would use an embed object. In this way, destroying the whole would destroy the parts (e.g. If your design of a car object made it composed of an engine, wheels, doors, etc., then destroying the car would destroy the parts). If however, your design were to use aggregation or association, then the car design in the above would mean that the parts can exist after the car is destroyed, i.e. you can refer (or reference) to them in other cars (but ensure you don't share the same engine at the same time with many cars!).
John.
<prince_kumar_at_my-deja.com> wrote in message
news:8jj6b9$vet$1_at_nnrp1.deja.com...
> Hi All:
>
> What is the difference between Embedding an "object type" inside the
> table and "REF"erencing the object?.
>
> Which is the preferred way of doing it?
>
> Thanks,
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Sun Jul 02 2000 - 00:00:00 CDT
![]() |
![]() |