Quote:
think carefully about the philosophical implications of making your domain model dependant upon Hibernate classes
Well, that has already happended because all classes of my business model implement the interface
net.sf.hibernate.Lifecycle in order to observe the persistence state of an object (is it new, is is changed, stored or deleted?) I implemented a common super class for this purpose.
BTW: Is there a better solution for this problem?
I didn't even start with my hashCode-equals-helper class. I think the most difficult problem is the handling of associated objects so I might omit a solution in the first shot.
Maybe I will totally fail and write 16 (the number of my business classes) hashCode-equals-pairs by hand. We'll see...