Class Card
- java.lang.Object
-
- edu.cnm.deepdive.dominionendpointtestspring.model.entity.Card
-
@Entity public class Card extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCard.Locationstatic classCard.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreated()GamegetGame()java.lang.LonggetId()Card.LocationgetLocation()intgetOrderInLocation()PlayergetPlayer()Card.TypegetType()java.util.DategetUpdated()voidsetCreated(java.util.Date created)voidsetGame(Game game)voidsetId(java.lang.Long id)voidsetLocation(Card.Location location)voidsetOrderInLocation(int orderInLocation)voidsetPlayer(Player player)voidsetType(Card.Type type)voidsetUpdated(java.util.Date updated)
-
-
-
Constructor Detail
-
Card
public Card(Card.Type type)
-
-
Method Detail
-
getId
public java.lang.Long getId()
-
setId
public void setId(java.lang.Long id)
-
getOrderInLocation
public int getOrderInLocation()
-
setOrderInLocation
public void setOrderInLocation(int orderInLocation)
-
getCreated
@NonNull public java.util.Date getCreated()
-
setCreated
public void setCreated(@NonNull java.util.Date created)
-
getUpdated
@NonNull public java.util.Date getUpdated()
-
setUpdated
public void setUpdated(@NonNull java.util.Date updated)
-
getLocation
public Card.Location getLocation()
-
setLocation
public void setLocation(Card.Location location)
-
getPlayer
@NonNull public Player getPlayer()
-
setPlayer
public void setPlayer(@NonNull Player player)
-
getType
public Card.Type getType()
-
setType
public void setType(Card.Type type)
-
getGame
public Game getGame()
-
setGame
public void setGame(Game game)
-
-