Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDO in Google's App Engine  RSS feed

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 (
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:
$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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!