Working on this to add to EasyGloss.
There are a number of rules that JPA entities must obey:
equalsandhashCodemust only be based on the persistent fields that are@Idannotated.- annotations must be applied to either fields or getters, no mix & match (although future versions of the spec may provide for such)
- In general, getters and setters should be simple methods (i.e. no complex processing)
I want to have a JPA Entity excerciser that will check these rules for you (and can be included in your unit tests)