ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Java Web Development with Stripes
Subject:   Code typo?
Date:   2007-03-14 05:46:50
From:   mjeagle
Response to: Code typo?

Here is the code for the Person class:


package com.meagle.blog.domain;


/**
* Simple Person object
*
* User: meagle
* Date: Jan 7, 2007
* Time: 8:55:47 PM
*/
public class Person {


private int id;
private String firstName;
private Integer age;


public int getId() {
return id;
}


public void setId(int id) {
this.id = id;
}


public String getFirstName() {
return firstName;
}


public void setFirstName(String firstName) {
this.firstName = firstName;
}


public Integer getAge() {
return age;
}


public void setAge(Integer age) {
this.age = age;
}
}