Yes, essentially it's a one-to-one mapping.

On 22 Jan 2011, at 3:43 AM, RipTheJacker wrote:

> Do you mean you need associations like http://datamapper.org/docs/associations
> ?
> 
> On Jan 19, 8:45 pm, Nevin <[email protected]> wrote:
>> Hi,
>> 
>> Coming from using Hibernate in Java I'm quite used to mapping fields
>> in a table to become a component within an object.
>> 
>> So for example I have a client table:
>> 
>> username
>> firstname
>> lastname
>> title
>> company_id
>> company_name
>> 
>> In Hibernate I can map this to a Client object which contains a
>> Company object with company_id, company_name fields.
>> 
>> Is it possible to do so in DataMapper?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/datamapper?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to