users@glassfish.java.net

Implementing Joined Inheritance in JPA

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Jul 2008 05:44:15 PDT

I want to implement the Joined inheritance in a way that a child can be persisted for an already existing Parent(parent record already persisted in database) where, Parent is a concrete class and No Discriminator Column is used.

class Parent
{
        @Id
        int Id;

        String Name;
        //getter/setters
}

Class Child extends Parent
{
        String address;
        //getter/setters
}
[Message sent by forum member 'chaitravi' (chaitravi)]

http://forums.java.net/jive/thread.jspa?messageID=288675