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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • person

      @VoDml(id="proposalManagement:Reviewer.person", role=reference, type="proposal:Person", typeRole=objectType) protected Person person
      ReferenceObject person : the person taking on the reviewer role. ( Multiplicity : 1 )
  • Constructor Details

    • Reviewer

      public Reviewer()
      Creates a new Reviewer
    • Reviewer

      public Reviewer(Person person)
      full parameter constructor.
      Parameters:
      person - the person taking on the reviewer role.
    • Reviewer

      public Reviewer(Reviewer other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • updateUsing

      public void updateUsing(Reviewer other)
      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

      public Person getPerson()
      Returns person Reference
      Returns:
      person Reference
    • setPerson

      public void setPerson(Person pPerson)
      Defines person Reference
      Parameters:
      pPerson - reference to set
    • createReviewer

      public static Reviewer createReviewer(Consumer<Reviewer.ReviewerBuilder> f)
      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 interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      @Deprecated public 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.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations