Hibernate InheritanceType.JOINED trouble



I created two classes:

@Entity
@Inheritance( strategy = InheritanceType.JOINED )
public class Parent implements Serializable {

@Id
@GeneratedValue
private Long id;

@Column( unique = true, nullable = false )
private String name;
...
}


@Entity
public class Child extends Parent {

@Column
private String dsc;
...
}

Saving, retrieve, updating of Parent class objects is perfect.
But I can't save Child class objects.
It is interesting to know that after writing Parent class object both
tables are created.
Please, help me in this dummy situation.

.



Relevant Pages

  • Re: Simple question for those who understand recursion well. Please help.
    ... > identify your recursion termination condition. ... public class TreeWalker ... private String parent_ = null; ... public Node(String name,String parent) ...
    (comp.lang.java.programmer)
  • Inherit Parent Constructor Behaviour
    ... public class Parent ... private string Parent_name; ... public class Child: Parent ...
    (microsoft.public.dotnet.languages.csharp)
  • C#/2.0: Tricky issue with generics.
    ... public class NodeList: ... NodeList can take a Node that is the parent. ... the case should be totally valid in my optinion. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Threading Faux Pa
    ... the Parent class data from the database and loads all the objects. ... a TCPClient that is wrapped in a 'communicator' class. ... public class ObjectModelController ... private void LoadObjectModel() ...
    (microsoft.public.dotnet.languages.csharp)
  • Casting Exception. Simple Code... Why! Why! Why!
    ... objTable = .SelectedOptions (the fifth line from ... I should be able to go from a parent to the child, ... Public ReadOnly Property SelectedOptions() As ParentTable ... Public Class ChildTable ...
    (microsoft.public.dotnet.languages.vb)