Hello,

I'm trying to persist a collection of embeddable/serializable objects
as one of the fields in my entity.  I've seen the trick where you wrap
the list in another serializable class and store the whole thing as a
lob, but that feels like a hack.  As far as I can tell, the jpa way to
do this is with an @ElementCollection(targetClass=BlaBlaBla.class)
annotation on top of my list.  I have annotated my BlaBlaBla class to
be Embeddable.

Unfortunately, Appengine gives me this exception:
javax.persistence.PersistenceException: Class "data.Contact" has
collection field "properties" and this has no mapping in the table for
the element class "data.EntityReference"
 
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForNucleusException(NucleusJPAHelper.java:
264)
 
org.datanucleus.jpa.EntityTransactionImpl.commit(EntityTransactionImpl.java:
122)
 
org.datanucleus.store.appengine.jpa.DatastoreEntityTransactionImpl.commit(DatastoreEntityTransactionImpl.java:
55)

Is the serializable class hack really necessary?  Any help would be
hot.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to