SayeedSalam

UserInfo.java

Aug 28th, 2012
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.22 KB | None | 0 0
  1. import javax.jdo.annotations.IdentityType;
  2. import javax.jdo.annotations.PersistenceCapable;
  3. import javax.jdo.annotations.Persistent;
  4. import javax.jdo.annotations.PrimaryKey;
  5.  
  6. @PersistenceCapable(identityType=IdentityType.APPLICATION)
  7. public class UserInfo {
  8.    
  9.     @Persistent
  10.     @PrimaryKey
  11.     private String username ;
  12.    
  13.     @Persistent
  14.     private String password ;
  15.    
  16.     @Persistent
  17.     private String emailAddress ;
  18.    
  19.     public String getUsername() {
  20.         return username;
  21.     }
  22.     public void setUsername(String username) {
  23.         this.username = username;
  24.     }
  25.     public String getPassword() {
  26.         return password;
  27.     }
  28.     public void setPassword(String password) {
  29.         this.password = password;
  30.     }
  31.    
  32.     public String getEmailAddress() {
  33.         return emailAddress;
  34.     }
  35.    
  36.     public void setEmailAddress(String emailAddress) {
  37.         this.emailAddress = emailAddress;
  38.     }
  39.    
  40.     public UserInfo(String username, String password, String emailAddress) {
  41.         super();
  42.         this.username = username;
  43.         this.password = password;
  44.         this.emailAddress = emailAddress;
  45.     }
  46.    
  47.     public UserInfo() {
  48.         super();
  49.     }
  50.    
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment