ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandre Grenier" <Alexandre.Gren...@markettools.com>
Subject RE: Composite design pattern and generics support
Date Thu, 06 Jul 2006 15:21:57 GMT

IBatis can use classes that implement an interface...
You will need to find out if the details of your specific implementation
will work. I would suggest attempting to do so within NUnit. Then you
can really be 100% sure.


-----Original Message-----
From: Rodrigo Pantoja [mailto:rodrigo.pantoja@gmail.com] 
Sent: Thursday, July 06, 2006 11:03 AM
To: user-cs@ibatis.apache.org
Subject: Re: Composite design pattern and generics support

Thanks Gilles,

 I'll give version 1.5 a look.

How about the composite pattern question?  Please  see my first
message for details.  Can you use a custom type handler to load a
multivalued property?   I mean could it be possible to use something
<result property="Artist" column="RecordingId"
select="selectArtistsByRecordingId" typehandler="Composite" />

the Artist property would be an IPerson (that is, the composite
interface)  Then in the ITypeHandlerCallback implementation I'd access
the records through the getter.DataReader, call whatever
factory/builder logic I have for the composite and return an IPerson.

Do you see a chance of success?

Thanks again,

View raw message