-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Property Mapping
PostPosted: Fri Nov 10, 2006 9:27 am 
Newbie

Joined: Mon Oct 23, 2006 1:56 pm
Posts: 7
Hi
I bought your book and think it is excellent!

My questions is:

I have a very similar situation like your mapping below:

------------------------------------------------------------------------
Page 309
Foreign keys to composite primary keys
mapping from Item to User:

<many-to-one name="seller" class="User">
<column name="USERNAME"/>
<column name="DEPARTMENT_ID"/>
</many-to-one>
------------------------------------------------------------------------


1. How would the "seller" property be mapped in this same hibernate-mapping file?

Thanks
Giovanni


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 10, 2006 9:43 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
What you pasted _IS_ the mapping of the 'seller' property.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.