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?