ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmwalm <cmw...@yahoo.com>
Subject Re: ueryForObject returns bean with null properties
Date Tue, 22 Jan 2008 22:28:41 GMT

D'oh!  Thanks Chris.

Christopher Lamey wrote:
> 
> 
>> # User.java #
>> public class User implements java.io.Serializable {
>>     private String userName;
>> 
>>     public String getUserName() { return this.userName; }
>>     public void setUserName(String s) { this.userName = userName; }
>> }
> 
> Should the setter do this?
> 
> public void setUserName(String s) { this.userName = s; }
> 
> Cheers,
> Chris
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ueryForObject-returns-bean-with-null-properties-tp15029119p15030204.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message