I was at a Java User Group last night where the presenter went over proxying. Specifically, he went over some rules that should be followed to make your entity classes better candidates for proxying, and optimizing them for proxying.
A couple of rules that he pointed out were
no final entity classes
no final methods in the entities
equals through getters, not properties
He went on to show that he wrote a ProxySafeEqualsTester which tests a class for various rules. I asked him if that was available on line, and he stated that he hadn't posted it anywhere yet.
Has anyone else seen a tester like this, or written one of their own? I'd love to get my hands on one to start checking my entities throughout the software development life cycle.
Thanks.