[jboss-dev-forums] [Design of JBoss jBPM] - Re: various questions

gavin.king@jboss.com do-not-reply at jboss.com
Tue Feb 27 09:39:07 EST 2007


The problem is nothing to do with proxies. AFAIR, there is no problem using foo.equals(bar) with a default implementation of equals. (Even if foo and bar are proxies.)

The problem is that == is an incorrect implementation of equals, since two nonidentical objects with represent the same data (ie, the same row of the database) will not be equal. This is nothing to do with Hibernate.

"business key" equality is the correct interpretation of equals() from a data modelling perspective. It represents what the *user* thinks of as the "same objects".

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023057#4023057

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023057



More information about the jboss-dev-forums mailing list