ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dodo" <j2eed...@gmail.com>
Subject database identity (or surrogate key) for equals()
Date Thu, 15 Jun 2006 01:47:57 GMT

I am thinking of using surrogate key (the one generated by
database) to implement equals() of domain object for ibatis. 

Now is there any pitfall I need to know???

Anyone doing things this way??

Although 'Hibernate in Action' said this is a bad idea but
I only want to compare objects that have id so I guess
this shud be ok.


View raw message