• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composition (component) in Hibernate - Help !!

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the book "Hibernate In Action"

They define Item -> Bid as one-to-many relationship WHILE
User -> Address as composition (component)

Why we can't make Bid as component of Item entity ?

What's the exact criteria for a class to become a component of other entity ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic