ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Usage of Reflection
Date Tue, 25 Jul 2006 04:31:09 GMT
If the concern is performance, it's unfounded (unless you are also
using like jdk1.2 or jdk1.3), and using maps instead of beans as
described in option #1 (for the sake of performance) is absolutely
retarded, IMO.

Go with #2.

Larry


On 7/24/06, Sumanta Ghosh <sumanta.g@tcs.com> wrote:
>
> Hi,
>    We have started a new project where I have proposed IBATIS. But since
> IBATIS uses reflection to populate result or parameters, people are raising
> concerns. Now we have decided to go with either of the 2 options: -
>          1. Using Maps for result and parameters and then populating the
> Entities from Maps (e.g. Entities will have a setAttributes(Map attrs)
> method where a Entity will set its attributes from the Map) - but here the
> concern is slowness of Map and also more coding, as in each Entity we have
> to implement setAttributes(Map attrs) method.
>          2. Using Entities as result and parameters - but here concern is
> usage of reflection.
>       Which option to go with?  Please advice.
> --
> View this message in context: http://www.nabble.com/Usage-of-Reflection-tf1996304.html#a5479650
> Sent from the iBATIS - User - Java forum at Nabble.com.
>
>

Mime
View raw message