Hi Roland,

When you say that OJB doesn't like your attribute names I take it that you
mean that OJB is not able to populate your objects? The problem is not with
OJB; it is that these names don't conform to the JavaBeans spec. You should
be able to get around this problem by instructing OJB to access the
attributes directly rather than using the setters/getters. I'm afraid that
off the top of my head I don't know the exact setting in OJB.properties, and
I'm not at the office (can't get outside email there) to look it up. But if
you look through OJB.properties it should be pretty obvious. Or you could
search the list archives; this has come up a number of times.

Dave Derry


----- Original Message -----
From: "Roland Carlsson" <[EMAIL PROTECTED]>


> Hello!
>  I have a little problem with a class that have properties on the form
xXxx
>  (perhaps I shoud learn regular expressions) ... mPhone, hPhone, wPhone.
I'm
>  using forte to build my access method that looks like this
>
> setMPhone, setWPhone, setHPhone.
>
>  The problem is that it seems to me that OJB doesn't like this and since
it
>  is old classes I can't easily change the names without affecting other
>  systems that i rather doesn't touch if I can avoid this.
>
>  Is there a way to keep my propertiesname in the current form so that I
can
>  reuse the classes as the are?
>
>  The error message is last in the message.
>
> Thanks in advance
>  Roland Carlsson



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