Package org.ivoa.dm.proposal.management
Class Reviewer
java.lang.Object
org.ivoa.dm.proposal.management.Reviewer
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:Reviewer",
role=objectType)
public class Reviewer
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
assigned to review the proposal.
objectType: Reviewer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Reviewer, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Reviewer
create a Reviewer in functional builder style.void
getId()
Returns person ReferencegetXmlId()
getter for XMLIDboolean
void
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
Defines person Referencevoid
void
updateUsing
(Reviewer other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
person
@VoDml(id="proposalManagement:Reviewer.person", role=reference, type="proposal:Person", typeRole=objectType) protected Person personReferenceObject person : the person taking on the reviewer role. ( Multiplicity : 1 )
-
-
Constructor Details
-
Reviewer
public Reviewer()Creates a new Reviewer -
Reviewer
full parameter constructor.- Parameters:
person
- the person taking on the reviewer role.
-
Reviewer
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
getPerson
Returns person Reference- Returns:
- person Reference
-
setPerson
Defines person Reference- Parameters:
pPerson
- reference to set
-
createReviewer
create a Reviewer in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-