javacoda wrote:
I'd probably map the Address as a composite Object. There is a good example of this in Hibernate in Action & it explains why you would choose one over the other quite clearly. It is worth reading the book, it really explains a lot.
I will read the book and get the full explanation. What put me off the composite element idea was that it sees you have to specify the properties you are interested in mapping each time. That is, in my Customer mapping, I have a <composite-element> where I specify all the properties of the address and where they are to be mapped. Likewise in Organisation and wherever else. I'd clearly like to be able to do this just once.
Have I misunderstood the way this works?