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.
Related Posts:
- Arbitrary sort of selection options
- How to Use JPOX in NetBeans 4.0
- HOWTO: Improved JPOX integration with NetBeans 4.0
- Rapid web development
No Comments yet »
RSS feed for comments on this post.
Leave a comment
Powered by blog.mu with Pool theme design by Borja Fernandez.

