On 12 Feb 2004 17:04, hooverphonique wrote:
>You discourage the use of the id (primary key attribute) in the equals
>method, but hbm2java does exactly that.. does that mean that you
>discourage the use of hbm2java and/or the apache builders?
hbm2java has _configurable_ support for equals()/hashCode() generation.
The default included the database identifer, which wasn't a good idea.
This is now fixed in CVS and in the next release of Hibernate Extensions. |