ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: mapping to an existing object model.
Date Tue, 29 Jan 2008 18:20:22 GMT
You can't do this automatically, but it could be done with a row handler.

Jeff Butler

On Jan 28, 2008 10:55 AM, Stephen Hasler <StephenH@i2.co.uk> wrote:

>  Hi
>
>
>
> I've been looking at iBATIS documentation/book and I can't really see how
> I'd go about solving the following:-
>
>
>
> I'm able to modify the database. I'm not able to modify the Java object
> model.
>
>
>
> In the database, I have a table called RESULT which I'd like to add a
> SCORE column to.
>
>
>
> The object model has an object Result which doesn't have a 'score'
> property. It does however have a mechanism for adding extensible properties.
>
>
>
> public class Result
>
> {
>
>   …
>
>   public addProperty(String propertyName, String propertyValue)
>
>   …
>
>
>
> }
>
>
>
> Is it possible to map this situation?
>
>
>
>
>
> Regards
>
>
>
> Steve
>
> ------------------------------
>
>
> *
> The information contained in this e-mail message is intended only
> for the personal and confidential use of the recipient(s) named
> above. This message may be an attorney-client communication and/or
> work product and as such is privileged and confidential. If the
> reader of this message is not the intended recipient or an agent
> responsible for delivering it to the intended recipient, you are
> hereby notified that you have received this document in error and
> that any review, dissemination, distribution, or copying of this
> message is strictly prohibited. If you have received this
> communication in error, please notify us immediately by e-mail, and
> delete the original message.
> *
>

Mime
View raw message