Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compare these two mapping file

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

this is should be
class Customer{
Order[] order;
}


what is this class coding ? I think it should be same as above. ...
I got confusing.

Thanks for your help.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are pretty much the same - what you are seeing are two different ways to define an association between Customers and Order. What is confusing you?
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Edward Chen:
Can an array be used to back a lazy set?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sorry. I'm reading things too quickly. The association is the same, assuming the class defines a proxy, but the POJO will of course use a different collection to define the association. Thank goodness someone audits my posts...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic