Hibernate InheritanceType.JOINED trouble
- From: Alex Karpoff <alexkarpoff@xxxxxxxxx>
- Date: Tue, 28 Aug 2007 11:34:20 -0700
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.
.
- Follow-Ups:
- Re: Hibernate InheritanceType.JOINED trouble
- From: Alex Karpoff
- Re: Hibernate InheritanceType.JOINED trouble
- Prev by Date: Re: How can i implements a class like an HashMap but with 2 keys ?
- Next by Date: Retrieving mac address of remote computer
- Previous by thread: How can i implements a class like an HashMap but with 2 keys ?
- Next by thread: Re: Hibernate InheritanceType.JOINED trouble
- Index(es):
Relevant Pages
|