Class Player

java.lang.Object
com.fyp.tauceti.entity.Player

@Entity public class Player extends Object
The Player entity maps to the PLAYER database table
  • Constructor Details

    • Player

      public Player()
      Default constructor
    • Player

      public Player(Long id, String displayName)
      Parameterised constructor
      Parameters:
      id - A unique ID for the primary key
      displayName - the player name in game
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getDisplayName

      public String getDisplayName()
      Get the players display name
      Returns:
      displayName
    • setDisplayName

      public void setDisplayName(String displayName)
      Set the players display name
      Parameters:
      displayName -
    • toString

      public String toString()
      Returns all information about a player as a string
      Overrides:
      toString in class Object
      Returns:
      string