422205 (1) [Avatar] Offline
In the book(page 65), it says "Instead of mapping Item#bids and User#bids collections, you can write queries to obtain all the bids for an Item and those made by a particular User. The associations in the UML diagram would point from the Bid to the Item and User, unidirectionally, and not the other way. The stereotype on the Bid class would then be <<Value type>>. "
The statement above confuses me a lot. I'm a beginner in Hibernate. Can someone help me.
If the associations is form Bid to Item and User, I can't have reference or value of Bid in both Item or User, so where should I put this <<value type>> in. So, I think Bid should be a <<Entity>> in this case.