Inheritance: One Table

2004-06-14 Thread Tino Schöllhorn
Hi, I have I inheritance-problem. I want to map two classes to one table. They are defined as followed: class A { int id; protected String ojbConcreteClass; // some attributes } class B extends A { // some additional attributes } I created class-descriptors

Re: Inheritance: One Table

2004-06-14 Thread Thomas Dudziak
Tino Schöllhorn wrote: Hi, I have I inheritance-problem. I want to map two classes to one table. They are defined as followed: class A { int id; protected String ojbConcreteClass; // some attributes } class B extends A { // some additional attributes } I created

Re: Inheritance: One Table

2004-06-14 Thread Thomas Dudziak
Tino Schöllhorn wrote: thanks now it works. But why do I have to map the attributes of the superclass in the subclass again? Is this intended or is the inheritance of descriptors a not yet enhancement? Yes, this is by intention because you don't necessarily want to have all persistent fields of

Re: Inheritance: One Table

2004-06-14 Thread Tino Schöllhorn
Hi, unfortunately I still have one problem: I use a xml-parser to pre-validate the repository.xml-file. This Parser now complains that field-descriptors cannot be used when using extent. I checked that with the DTD and I think it is correct: !ELEMENT class-descriptor ((documentation?,

Re: Inheritance: One Table

2004-06-14 Thread Thomas Dudziak
Tino Schöllhorn wrote: Hi, unfortunately I still have one problem: I use a xml-parser to pre-validate the repository.xml-file. This Parser now complains that field-descriptors cannot be used when using extent. I checked that with the DTD and I think it is correct: !ELEMENT class-descriptor

Re: Inheritance: One Table

2004-06-14 Thread LE-QUERE Gildas - REN
AM Subject: Inheritance: One Table Hi, I have I inheritance-problem. I want to map two classes to one table. They are defined as followed: class A { int id; protected String ojbConcreteClass; // some attributes } class B extends A { // some additional attributes } I created