title: Use PostgreSQL Domain and Struct types in Java
body: <p>After creating EntityManagerFactory instance, I receive error message:</p>
  
  <pre><code>...
  Exception Description: Predeployment of PersistenceUnit [aPU] failed.
  Internal Exception: Exception [EclipseLink-7157] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.ValidationException
  Exception Description: Entity class [class Table] must use a @JoinColumn instead of @Column to map its relationship attribute [Price].
  ...
  </code></pre>
  
  <p>Column Price is Domain type (example: <code>CREATE TYPE MONEY AS NUMERIC(10,2) FINAL</code>).</p>
  
  <p>How to use Domain or Struct PostgreSQL types? Is it possible with JPA?</p>