Class ChallengeAttemptWithPlayer
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.ChallengeAttempt
-
- edu.cnm.deepdive.scalescroller.model.pojo.ChallengeAttemptWithPlayer
-
public class ChallengeAttemptWithPlayer extends ChallengeAttempt
ChallengeAttemptWithPlayer
extends theChallengeAttempt
entity to provide support for queries that need thePlayer
object in addition to the ChallengeAttempt object.
-
-
Constructor Summary
Constructors Constructor Description ChallengeAttemptWithPlayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Player
getPlayer()
Returns thePlayer
associated with theChallengeAttempt
.void
setPlayer(Player player)
Sets thePlayer
associated with theChallengeAttempt
.-
Methods inherited from class edu.cnm.deepdive.scalescroller.model.entity.ChallengeAttempt
getCorrectCoins, getId, getIncorrectCoins, getLastScaleId, getPlayerId, getTimestamp, getTotalScore, setCorrectCoins, setId, setIncorrectCoins, setLastScaleId, setPlayerId, setTimestamp, setTotalScore
-
-
-
-
Method Detail
-
getPlayer
public Player getPlayer()
Returns thePlayer
associated with theChallengeAttempt
.- Returns:
- The player associated with the attempt.
-
setPlayer
public void setPlayer(Player player)
Sets thePlayer
associated with theChallengeAttempt
.- Parameters:
player
- ThePlayer
object to be set.
-
-