On Thu, 2004-06-24 at 23:07, Thomas Dudziak wrote:
> Nouguier Olivier wrote:
> 
> > Hi all, and sorry for the wait ( my child needed a long story to sleep )
> 
> no problem, there are things that are more important than work :-)
> 
> I was wondering: why do you have include-inherited='false'? You should 
> be able to achieve what you want with @ojb.modify-inherited like this:

Yes that's working

I'm debugging the job of a collegue, and I didn't find your solution. I
think they have found (more) natural to try make a selection on the
fields to override. 

I've not hack the xdoclet-ojb yet, but I suppose:

         1: with   include-inherited='true' you copy the fields from
inherited class
         2: with ignore true you then remove ignored field from list

That could explain the way to proceed ?
 
 Your solution works perfectly, tomorow I will be a heros,  many many
thanks Tom

> package com.amdm.ojbdemo.model;
> 
> /**
>   * @ojb.class            table = "salaries"
>   * @ojb.reference        class-ref="com.amdm.ojbdemo.model.Person"
>   *                       foreignkey="id"
>   * @ojb.modify-inherited name="lastname"
>   *                       ignore="true"
>   * @ojb.modify-inherited name="firstname"
>   *                       ignore="true"
>   */
> public class Salary extends Person {
>          /** @ojb.field */
>       private double income;
> 
> ...
> }
> 
> Leave the Person class as it is (esp. determine-extents='false') and you 
> should be fine.
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to