This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 200909081533 ] [ JDK VERSION : 1.6.* ] The insert code module for hashCode() and equals() uses the actual fields rather than the get* methods. At least for @Entity beans that use property access, it should use the getters, as accessing the fields directly is wrong. IMHO, it should use getters whenever possible, as those methods get inlined in the simple cases. Maybe we could have a checkbox marked "Use property access"? Michael
While at it, the module should probably allow the user to choose from class identity check (this.getClass == other.getClass) and the instanceof operator, as the JPA providers use bytecode weaving.