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
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
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
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?,
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
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