Package net.sf.basedb.core.data
Class ReporterListScoreData
java.lang.Object
net.sf.basedb.core.data.ReporterListScoreData
- All Implemented Interfaces:
Serializable
This class holds information about the score of a reporter in a
reporter list. The mapping is defined in the external mapping
file
ReporterListScoreData.hbm.xml
since
XDoclet can't generate the <composite-id>
tag for us.- Version:
- 2.0
- Author:
- Nicklas
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate ReporterData
private int
private ReporterListData
private Float
private static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the reporter.int
The id of the reporter.The reporter list this reporter and score belongs to.getScore()
Get the score for the reporter, or null if no score has been set.int
hashCode()
private void
void
setReporter
(ReporterData reporter) void
setReporterId
(int reporterId) void
setReporterList
(ReporterListData reporterList) void
toString()
private void
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
reporterList
-
reporterId
private int reporterId -
reporter
-
score
-
-
Constructor Details
-
ReporterListScoreData
public ReporterListScoreData()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getReporterList
The reporter list this reporter and score belongs to. Part of the composite id of this class. -
setReporterList
-
getReporterId
public int getReporterId()The id of the reporter. This mapping is neccessary since the alternative<key-many-to-one>
doesn't work withINNER JOIN FETCH
queries. We have to use a regular<many-to-one>
, which means that the reporter property must be outside the composite id. -
setReporterId
public void setReporterId(int reporterId) -
getReporter
Get the reporter. -
setReporter
-
getScore
Get the score for the reporter, or null if no score has been set. -
setScore
-
readObject
- Throws:
ClassNotFoundException
IOException
-
writeObject
- Throws:
IOException
-