first the tss post....the execption says:
Code:
composite-id class must override equals() and hashCode(): com.auctioninfo.model.PersonPK
That's pretty clear to me - PersonPK MUST implement equals/hashcode how else should hibernate be able to see if two keys are equal or different ? (some work has been done in H3 about removing this need for some types, but i'm not sure)
And what is ugly about having equals and hashcode in your business objects ? It is required in almost any case when dealing with Java 2 Collections. See
http://www.hibernate.org/Documentation/ ... ndHashCode for more discussion on this not specific to hibernate question.
I don't use xdoclet for Hibernate so i can't say if it has something usefull for this.
If you don't want the extra class then use a unnamed composite-id and it will be your class that needs to do the identification - but then there are also limitations with that (documented in the ref docs and Hibernate in Action)