bookmark

hibernate.org - Annotation driven equals and hashCode


Description

Nice example on how to get rid of superfluous code... The following implementation of equals, hashcode and toString is using the concept of one or more business keys defined by annotations.The annotation @BusinessKey can be applied with an include/exclude filter on field or method level.

Preview

Tags

Users

  • @gresch

Comments and Reviews