Referencing a superclass from a subclass in JPOX

March 14, 2005 on 12:22 pm | In General, Java |

In JPOX, when referencing a superclass from a subclass, say, Message descends from Post and has a parent of type Post, do not use the no-table inheritance strategy for the superclass.

class Post {}

class Article extends Post {}

class Message extends Post {
  private Post parent;
}

Doing this will cause JPOX to fail since the parent post record will not be found because there is no table for the Post class. One can either leave it to JPOX to choose the correct strategy or specify the new-table one.

Technorati Tags: ,

Related Posts:

No Comments yet »

RSS feed for comments on this post.

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>





Powered by blog.mu with Pool theme design by Borja Fernandez.