Created
September 9, 2012 07:12
-
-
Save gomzie/3683114 to your computer and use it in GitHub Desktop.
User.java
This file contains 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
package org.spring.mongo; | |
import org.springframework.data.annotation.Id; | |
import org.springframework.data.mongodb.core.mapping.DBRef; | |
import org.springframework.data.mongodb.core.mapping.Document; | |
@Document | |
public class User { | |
@Id | |
private String id; | |
private String firstName; | |
private String middleName; | |
private String lastName; | |
private String userName; | |
private String password; | |
private String organization; | |
private String jobTitle; | |
private String email; | |
private String phoneNumber; | |
private String country; | |
@DBRef | |
private Role role; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getFirstName() { | |
return firstName; | |
} | |
public void setFirstName(String firstName) { | |
this.firstName = firstName; | |
} | |
public String getLastName() { | |
return lastName; | |
} | |
public void setLastName(String lastName) { | |
this.lastName = lastName; | |
} | |
public String getUserName() { | |
return userName; | |
} | |
public void setUsername(String userName) { | |
this.userName = userName; | |
} | |
public String getPassword() { | |
return password; | |
} | |
public void setPassword(String password) { | |
this.password = password; | |
} | |
public Role getRole() { | |
return role; | |
} | |
public void setRole(Role role) { | |
this.role = role; | |
} | |
public String getMiddleName() { | |
return middleName; | |
} | |
public void setMiddleName(String middleName) { | |
this.middleName = middleName; | |
} | |
public String getOrganization() { | |
return organization; | |
} | |
public void setOrganization(String organization) { | |
this.organization = organization; | |
} | |
public String getJobTitle() { | |
return jobTitle; | |
} | |
public void setJobTitle(String jobTitle) { | |
this.jobTitle = jobTitle; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
public String getPhoneNumber() { | |
return phoneNumber; | |
} | |
public void setPhoneNumber(String phoneNumber) { | |
this.phoneNumber = phoneNumber; | |
} | |
public String getCountry() { | |
return country; | |
} | |
public void setCountry(String country) { | |
this.country = country; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment