Generate equals method should access attributes via accessor not directly. Permanently deleted user 创建于 2008年09月01日 20:11 The way it is done now will cause a problem with Hibernate proxies.
You can easily workaround this with Refactor -> Encapsulate Fields refactoring (checkbox "Use accessors even when field is visible" must be checked).
EDIT:
Although, "Use accessors when available" checkbox for generating hashCode and equals would be really nice.