Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User {
- Long id;
- String username;
- String password;
- boolean active;
- String getUsername() {
- }
- boolean isNew() {
- return id != null;
- }
- boolean isActive() {
- return active;
- }
- }
- {
- username: "foo",
- active: true, // or would it be isActive, can't remember
- }
- {
- username: "bar",
- active: false, // or would it be isActive, can't remember
- password: "password1"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement