This post is a collection of tips on what I think is good advice, when domain modelling in Java with JPA as ORM mapping technology. Do you agree? Do you have extra advice? Please let me know! Here they come, in no particular order. 1. Put Annotation on Methods, not Attributes If using annotations on attributes, JPA engine will set directly in the attributes using reflection, hereby by-passing any
{{#tags}}- {{label}}
{{/tags}}