Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created January 12, 2011 15:06
Show Gist options
  • Save Eugeny/776261 to your computer and use it in GitHub Desktop.
Save Eugeny/776261 to your computer and use it in GitHub Desktop.
public abstract class Bean implements Serializable {
public abstract String getTable();
public int ID = 0;
}
public class ServerBean extends Bean {
private static final long serialVersionUID = 1L;
public String name = "New server";
public String hostname = "localhost";
public String type = "icmp";
public String meta = "";
@Override
public String toString() {
return this.name;
}
@Override
public String getTable() {
return "servers";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment