ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Huy <huym...@swiftdsl.com.au>
Subject Re: Flexible ResultMaps (Again)
Date Sat, 05 Feb 2005 22:31:21 GMT
Clinton Begin wrote:
> Sure I'll join...  ;-)
> 
> In my opinion, using a Map is one step below using a class with public
> fields (a.k.a. C-style struct).  Both lose the advantage of
> encapsulation.  However, a Map is worse still in that you also lose
> type definition (which fields are on a domain object) and type safety
> (which type is each field).

Yeah, I hate all that casting stuff you have to do in java when getting 
things out of collections. Generics thing in java 1.5 might help out 
with this.

Regards,

huy

Mime
View raw message