org.tolven.core.entity
Class TolvenUserAnswer

java.lang.Object
  extended by org.tolven.core.entity.TolvenUserAnswer
All Implemented Interfaces:
java.io.Serializable

public class TolvenUserAnswer
extends java.lang.Object
implements java.io.Serializable

Specifies all the answers selected by a Tolven User

Author:
Sashikanth Vema
See Also:
Serialized Form

Constructor Summary
TolvenUserAnswer()
          Construct an empty TolvenUserAnswer.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 QuestionAnswer getAnswer()
           
 long getId()
          The meaningless, unique ID for this association.
 Question getQuestion()
           
 TolvenUser getTolvenUser()
           
 int hashCode()
           
 void setAnswer(QuestionAnswer answer)
           
 void setId(long val)
           
 void setQuestion(Question question)
           
 void setTolvenUser(TolvenUser tolvenUser)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TolvenUserAnswer

public TolvenUserAnswer()
Construct an empty TolvenUserAnswer.

Method Detail

getTolvenUser

public TolvenUser getTolvenUser()

setTolvenUser

public void setTolvenUser(TolvenUser tolvenUser)

getQuestion

public Question getQuestion()

setQuestion

public void setQuestion(Question question)

getId

public long getId()
The meaningless, unique ID for this association. Leave Id null for a new record. The EntityManager will assign a unique Id when it is persisted.


setId

public void setId(long val)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getAnswer

public QuestionAnswer getAnswer()

setAnswer

public void setAnswer(QuestionAnswer answer)