ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Pitts" <Daniel.Pi...@cnet.com>
Subject RE: Re: HashMap results and column aliased with '.' in the name.
Date Sat, 18 Mar 2006 01:20:04 GMT
Actually, it was remapped with "as" to the columns named with ".".

I changed my implementation to use ":" instead, and it works. 

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of netsql
Sent: Friday, March 17, 2006 4:41 PM
To: user-java@ibatis.apache.org
Subject: Re: HashMap results and column aliased with '.' in the name.

You can remap in sql w/ "as" or map the fields in XML.

.V

Daniel Pitts wrote:
> I want to get a result back as a HashMap with all the columns in the 
> result being keys in the map.  It makes sense for my application to 
> have '.'s in the column names, but ibatis is trying to map those to 
> properties of "Object" instances.
> Is there any way to tell ibatis to ignore '.'s in the column name, or 
> do I have to find a different delineator?
> 

Mime
View raw message