users@glassfish.java.net

Re: JPA Merge and Remove

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Jun 2007 07:37:56 PDT

Hello,

Not sure how you have a @ManyToOne annotation on a List attribute - shouldn't it be a @OneToMany, as in one Garagehas many Vehicles?

I'd recommend turning the Toplink logging level to finest to see the annotation processing info for your classes to see if its going wrong. Set
  <property name="toplink.logging.level" value="FINEST"/>
in your persistence.xml.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=223778