Ok thx !! I was not sure of this Thx ...

Le jeu 07/11/2002 � 14:51, Mattias Jiderhamn a �crit :
> In short: OJB uses reflexion and looks at the getter and setter methods. So
> you should map "name", which would be the external name of the bean
> property, instead of "_name", which is an internal (private) name.
> 
> > -----Original Message-----
> > From: Kevin Viet [mailto:vietk@;activia.net]
> > Sent: Thursday, November 07, 2002 2:46 PM
> > To: OJB Users List
> > Subject: field mapping question
> >
> >
> > Hello all, I have a little question
> >
> > I have a class designed this way :
> >
> > public class A
> > {
> >     private String _name;
> >     private String _password;
> >
> >     public String getName()
> >     {
> >             return _name;
> >     }
> >
> >     public void setName(String name)
> >     {
> >             _name = name;
> >     }
> >
> > // ... ....
> >
> > }
> >
> > Does this field declaration is compatible with the default ojb field
> > mapping
> >
> > <class-descriptor class="A" table="aTable>
> >     <field-descriptor
> >             id="1"
> >             name="_name"
> >             column="name"
> >             jdbc-type="varchar"
> >     />
> > </class-descriptor>
> >
> >
> > --
> > Kevin Viet <[EMAIL PROTECTED]>
> > ActiVia Networks
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> > For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
-- 
Kevin Viet <[EMAIL PROTECTED]>
ActiVia Networks




--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to