captainawesome7

DNCPersistence

Apr 29th, 2011
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. package me.captain.DispNameChanger;
  2.  
  3. import com.avaje.ebean.validation.NotEmpty;
  4.  
  5.  
  6. import javax.persistence.Entity;
  7. import javax.persistence.GeneratedValue;
  8.  
  9. import javax.persistence.Id;
  10.  
  11. import javax.persistence.Table;
  12.  
  13. /**
  14.  *
  15.  * @author captain (its sammy's tutorial database thingy, idk)
  16.  */
  17. @Entity()
  18. @Table(name = "disp_names")
  19. public class DNCPersistence {
  20.  
  21.     @Id
  22.     @GeneratedValue
  23.     private int id; // Database Id
  24.     private String playerName; //Minecraft account name
  25.     @NotEmpty
  26.     private String DisplayName; //Player chosen name
  27.  
  28.     public String getDisplayName() {
  29.         return DisplayName;
  30.     }
  31.  
  32.     public void setDisplayName(String DisplayName) {
  33.         this.DisplayName = DisplayName;
  34.     }
  35.  
  36.     public int getId() {
  37.         return id;
  38.     }
  39.  
  40.     public void setId(int id) {
  41.         this.id = id;
  42.     }
  43.  
  44.     public String getPlayerName() {
  45.         return playerName;
  46.     }
  47.  
  48.     public void setPlayerName(String playerName) {
  49.         this.playerName = playerName;
  50.     }
  51. }
Add Comment
Please, Sign In to add comment