Skip to content

Instantly share code, notes, and snippets.

@krisskross
Created May 4, 2012 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisskross/2596497 to your computer and use it in GitHub Desktop.
Save krisskross/2596497 to your computer and use it in GitHub Desktop.
@Config(desc = "User database.")
public class Database {
@Id(desc = "Identification of database.")
private String id;
@Config(desc = "Address for connecting to database.")
private URL url;
// username with default value 'test'
@Config(desc = "Username for connecting to database.")
private String username = "test";
// password with default value 'test'
@Config(desc = "Password for connecting to database.")
private String password = "test";
@Config(desc = "Database connections in pool.")
private Integer poolSize;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment