Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDO in Google's App Engine

 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to this and trying to make inheritance work with JDO and App Engine. 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. So
I'm trying this: @Inheritance(strategy =
InheritanceStrategy.NEW_TABLE) on "User," an object that is indeed 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,
Eddy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic