Other side of the relation must also a be an entity and you know Long is not an entity. Create a new model for storing the ids.
Am 13.07.2011 21:57, schrieb canavar:
> Other side of the relation must also a be an entity and you know Long is
> not an entity. Create a new model for storing the ids.
In JPA version 2 you could have a relation with primitiv types.
See
http://agoncal.wordpress.com/2009/11/01/mapping-and-querying-a-list-of-primitive-types-with-jpa-2-0/
reagrds,
Robert
--
Robert Magnus
akquinet tech@spree GmbH
Bülowstraße 66, D-10783 Berlin
Tel. +49 (0)30 235 520 - 44 Fax. +49 (0)30 217 520 - 12
Geschäftsführung: Martin Weber, Dr. Torsten Fink
Amtsgericht Berlin-Charlottenburg HRB 86780 B
USt.-Id. Nr.: DE 225 964 680
Vow! I didn't even know that. So what claw did was right.