Re: Oracle TopLink + composite mapping



Hi,

Yes that's possible.

Map X as Aggregate Mapping.

If you now map Y as "normal" Class Mapping you can choose the
attributes of X to map to the database.

Regards, Simon


blochoo wrote:
Hello,

I have a little problem with Toplink:

I have a table in Oracle DB:

table T1 {A: integer, B: integer, C: integer}.

I want to have following mapping:

class X { int A; intB;}
class Y{ X objct; int C}

so the objct (of class X) is a composite of class Y, and both of
objects (composite and owner) are in the same table.

Is it possible to make such a mapping in TopLink?

Thanks for every helpful answer.
--
Piotr Bloch
CS @ PUT
Poland

.



Relevant Pages

  • Re: Decoding strategy
    ... Mapping is actually two-step process, ... address at which to map the file, this isn't necessary, nor does it to my ... needs physical RAM that's not available). ... This doesn't reserve any ...
    (microsoft.public.dotnet.languages.csharp)
  • behavior as mapping
    ... seeing behavior as a mapping from a very high dimension ... that the map has been changed. ... The brain has a finite and relatively fixed number of neurons, ... But in fact, before we learned how to ride a bike, ...
    (comp.ai.philosophy)
  • Re: behavior as mapping
    ... seeing behavior as a mapping from a very high dimension ... that the map has been changed. ... The brain has a finite and relatively fixed number of neurons, ... But in fact, before we learned how to ride a bike, ...
    (comp.ai.philosophy)
  • Re: Decoding strategy
    ... Mapping is actually two-step process, ... address at which to map the file, this isn't necessary, nor does it to my ... needs physical RAM that's not available). ... There are reasons that you might not be able to map an entire file into your ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: [patch 02/11] PAT x86: Map only usable memory in x86_64 identity map and kernel text
    ... x86_64 identity map and kernel text ... If we keep mapping for such pages, it will be problematic as if a driver ... I don't like /dev/mem supporting access to mmio. ... reserved shouldn't be unmapped, just holes. ...
    (Linux-Kernel)