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.  [ 1 post ] 
Author Message
 Post subject: How to map a property which is based on collection filter
PostPosted: Fri Feb 13, 2009 2:14 pm 
Newbie

Joined: Tue Apr 08, 2008 11:29 pm
Posts: 3
I have Items and Bids table with one to many relationship between them (an item can have many bids).

Item table primary column is ItemID.

Bids table has the following columns:
1. BidID (primary key)
2. ItemID (forgien key)
3. Is Successful (boolean column to denote if the bid was successfult).


In Item class, I want to map a property called successfulBid to the Successful bid identified in Bids table.

Please let me know how to map such a property.

Thanks


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

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.