ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lamey <cla...@localmatters.com>
Subject Re: ueryForObject returns bean with null properties
Date Tue, 22 Jan 2008 21:55:49 GMT

> # 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


Mime
View raw message