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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Reviewer, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Reviewercreate a Reviewer in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns person ReferencegetXmlId()getter for XMLIDbooleanvoidDefines person ReferencevoidvoidupdateUsing(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:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin 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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-