title: JPA: Should I clean up my entity classes using orm.xml?
body: <p>I currently use JPA annotations only, but I really don't like that I'm polluting my entity classes with so many ORM details which really aren't relevant to their behavior (e.g. table name, id generation strategies, join columns...).</p>
  
  <p>I see that <a href="http://www.datanucleus.org/products/accessplatform/jpa/annotations.html" rel="noreferrer">DataNucleus recommends putting ORM-related annotations in XML instead</a> (those colored in pink), but I haven't seen any other implementations recommend this and JPA doesn't seem to separate annotations into these two groups (I think JDO does).</p>
  
  <p>Is anyone using annotations+orm.xml in this way, and what are your experiences?</p>
  
  <p>Will it remove some of the pollution from my entity classes, or will I run into problems?</p>