Hi all,

I'm new to this and trying to make inheritance work. Looking at the
documentation (http://code.google.com/appengine/docs/java/datastore/
dataclasses.html#Inheritance) I see that I can not use new-table for
an object that is not at the root of the inheritance hierarchy. Fine.
I'm trying this: @Inheritance(strategy =
InheritanceStrategy.NEW_TABLE) on "User," an object that IS AT THE
ROOT of the hierarchy, and I'm leaving the object extending it,
"Publisher" without an inheritance strategy.

I'm getting the following:
org.datanucleus.store.appengine.DatastoreManager
$UnsupportedInheritanceStrategyException: Found inheritance strategy
'superclass-table' on com.myapp.model.Publisher.

Like I said, there is no inheritance strategy on Publisher, so I
assume the framework is adding the superclass-table on its own.

What should I do? How should go about it? The documentation gives an
example for and abstract class at the root, but for my app I need User
to be stored in it's own table, and only some Users are Publishers, so
there would also be a Publisher "table."

I'll greatly appreciate your help.

Thanks,
Eyal

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

Reply via email to