Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Mapping Domain or Struct PostgreSQL type

ilkos

2010-08-14

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi

After creating EntityManagerFactory instance, I receive error message:
...
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].
...
Column Price is Domain type (example: CREATE TYPE MONEY AS NUMERIC(10,2)
FINAL).

How to use Domain or Struct PostgreSQL types? Is it possible with JPA?

Please advise
--
Sent from the OpenJPA Users mailing list archive at Nabble.com.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.