ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Jenkins <krisajenk...@yahoo.co.uk>
Subject Re: Indexing POJOs
Date Tue, 15 Feb 2005 09:23:16 GMT
Colin Williams wrote:

>Kris,
>
>I tried this and it does try to set the property on the id field, but
>of course it throws an error because it has used a default constructor
>so the id is of type Object.
>
>I need some way to indicate to Ibatis that I want to create my object
>with a composite key identifier object, say of type CustomerKey, for
>instance with the fields specified.
>
>Your suggestion is part 2, setting the properties of the key object,
>is there any solution for part 1.
>  
>
Colin,

I've just tried it over here without any problems.  Can we see the error 
(and maybe the code, too)?

Kris

-- 
Kris Jenkins
Email:  kris@jenkster.com
Blog:   http://cafe.jenkster.com/
Wiki:   http://wiki.jenkster.com/



Mime
View raw message