用来测试的实体bean代码
package testReflect;
/*
* Created on 2005-2-25
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*//**
* @author jason1
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class clsReflect {
private String id="30";
private String name="success";
private String sex="女";
private String address="dfgdf"; /**
* @return
*/
public String getName() {
return name;
}
/**
* @param string
*/
public void setId(String string) {
id = string;
}
/**
* @param string
*/
public void setName(String string) {
name = string;
}
/**
* @return
*/
public String getId() {
return id;
}
public static void main(String args[]){
}
/**
* @return
*/
public String getSex() {
return sex;
} /**
* @param string
*/
public void setSex(String string) {
sex = string;
} /**
* @return
*/
public String getAddress() {
return address;
} /**
* @param string
*/
public void setAddress(String string) {
address = string;
}}
package testReflect;
/*
* Created on 2005-2-25
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*//**
* @author jason1
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class clsReflect {
private String id="30";
private String name="success";
private String sex="女";
private String address="dfgdf"; /**
* @return
*/
public String getName() {
return name;
}
/**
* @param string
*/
public void setId(String string) {
id = string;
}
/**
* @param string
*/
public void setName(String string) {
name = string;
}
/**
* @return
*/
public String getId() {
return id;
}
public static void main(String args[]){
}
/**
* @return
*/
public String getSex() {
return sex;
} /**
* @param string
*/
public void setSex(String string) {
sex = string;
} /**
* @return
*/
public String getAddress() {
return address;
} /**
* @param string
*/
public void setAddress(String string) {
address = string;
}}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货