Imaginative Blog Name: Liskov's Substitution Principle, equals, and Hibernate Proxies

« back
http://cwmaier.blogspot.com/2007/07/liskov-substitution-principle-equals.html
Hibernate's CGLIB dynamic proxy classes reared their ugly head today. I've been using the Eclipse-generated hashcode() and equals() methods in my domain objects for quite a while, with no problems. Then today I write a test that does a simple equality check and everything blows up!

1 members have saved this link, 1 have saved it publicly

oneviewer 1 - 1 of 1 | page 1  
oneview member: MrJava
Description: Hibernate's CGLIB dynamic proxy classes reared their ugly head today. I've been using the Eclipse-generated hashcode() and equals() methods in my domain objects for quite a while, with no problems. Then today I write a test that does a simple equality check and everything blows up! MrJava has no comment comment about this information | Links saved: yes
oneviewer 1 - 1 of 1 | page 1