dear all,
i am using Hibernate 3.5.4 final with Annotations Configuration although I implemented the methods equals() and hashCode() in the persistence classes they are not called by hibernate. I inserted some print-outs, but nothing is written on console. Also when putting breakpoints, they are never reached.
The classes are using the annotations: ------------------------------------------------------ @Entity @Inheritance(strategy = InheritanceType.JOINED) ------------------------------------------------------
and several OneToOne-Realations defined like: --------------------------------- @OneToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) private Property property; ---------------------------------
What could i do that hibernate uses equals and hashCode methods? Is there anything i should configure in the hibernate.cfg.xml file?
thanking you very much in advance for your help
best regards Malcom
|