Created
January 12, 2011 15:06
-
-
Save Eugeny/776261 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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