Nouguier Olivier wrote:
Hi all, We're using ojb in a big project, with many many inheritance relations. We choose the One Table per object strategie.
So:
class A { int id int fieldA }
Class B extends A {
int fieldB
}
Using xdoclet for generating mapping file brings us to put an @ojb.reference name="id" in Class B header, but for this to work we need to declare id as anonymous field of B ( @ojb.field also in header ).
As consequence id of A is never filled with db data ( anonymous ). If we
change access="readonly" in mapping all is alright.
The problem is that when @ojb.field are in header the attribute "access"
is ignored ( as described in doc ).
Is there a way to work with this strategie of inheritance mapping and xdoclet.
In the sample class B redefines attribute id, with @ojb.field at field level, this works, but "id" of class "A" is hidden.
Could you post the classes with the tags as you're using them, and the repository_user.xml part as it is generated and as you'd like to have it ?
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
