Java Reference
In-Depth Information
===ACTIVATED USERS===
ray is activated.
jason is activated.
===NON-ACTIVATED USERS===
beth is not activated.
judy is not activated.
rob is not activated.
Listing 11-3 gives the User class used for this chapter's examples. The only fields it con-
tains are id , username , and activated .
Listing 11-3. The Source Code for the User Class
package com.hibernatebook.filters;
public class User {
private int id;
private String username;
private boolean activated;
public boolean isActivated() {
return activated;
}
public void setActivated(boolean activated) {
this.activated = activated;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
Search WWH ::




Custom Search