February 06, 2012

Example for POJO class

POJO Entity Class example


public class IPAddress {
   
    private int ipAddressId = 0;
    private String ipAddress = null;
    private String description = null;
   
    public int getIpAddressId() {
        return ipAddressId;
    }
    public void setIpAddressId(int ipAddressId) {
        this.ipAddressId = ipAddressId;
    }
    public String getIpAddress() {
        return ipAddress;
    }
    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
   

}

No comments:

Post a Comment

Your feedback may help others !!!

Facebook comments