Class Person

java.lang.Object
org.ivoa.dm.proposal.prop.Person
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:Person", role=objectType) public class Person extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
person connected with the proposal. objectType: Person
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • fullName

      @VoDml(id="proposal:Person.fullName", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String fullName
      The given names for the person. : Attribute fullName : multiplicity 1
    • eMail

      @VoDml(id="proposal:Person.eMail", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String eMail
      an email that can be used to communicate with the person. : Attribute eMail : multiplicity 1
    • orcidId

      @VoDml(id="proposal:Person.orcidId", role=attribute, type="ivoa:stringIdentifier", typeRole=primitiveType) protected org.ivoa.dm.ivoa.StringIdentifier orcidId
      orcid id see https://orcid.org. : Attribute orcidId : multiplicity 0..1
    • homeInstitute

      @VoDml(id="proposal:Person.homeInstitute", role=reference, type="proposal:Organization", typeRole=objectType) protected Organization homeInstitute
      ReferenceObject homeInstitute : . ( Multiplicity : 1 )
  • Constructor Details

    • Person

      public Person()
      Creates a new Person
    • Person

      public Person(String fullName, String eMail, Organization homeInstitute, org.ivoa.dm.ivoa.StringIdentifier orcidId)
      full parameter constructor.
      Parameters:
      fullName - The given names for the person.
      eMail - an email that can be used to communicate with the person.
      homeInstitute - .
      orcidId - orcid id see https://orcid.org.
    • Person

      public Person(Person 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(Person 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.
    • getFullName

      public String getFullName()
      Returns fullName Attribute
      Returns:
      fullName Attribute
    • setFullName

      public void setFullName(String pFullName)
      Defines fullName Attribute
      Parameters:
      pFullName - value to set
    • withFullName

      public Person withFullName(String pFullName)
    • getEMail

      public String getEMail()
      Returns eMail Attribute
      Returns:
      eMail Attribute
    • setEMail

      public void setEMail(String pEMail)
      Defines eMail Attribute
      Parameters:
      pEMail - value to set
    • withEMail

      public Person withEMail(String pEMail)
    • getHomeInstitute

      public Organization getHomeInstitute()
      Returns homeInstitute Reference
      Returns:
      homeInstitute Reference
    • setHomeInstitute

      public void setHomeInstitute(Organization pHomeInstitute)
      Defines homeInstitute Reference
      Parameters:
      pHomeInstitute - reference to set
    • getOrcidId

      public org.ivoa.dm.ivoa.StringIdentifier getOrcidId()
      Returns orcidId Attribute
      Returns:
      orcidId Attribute
    • setOrcidId

      public void setOrcidId(org.ivoa.dm.ivoa.StringIdentifier pOrcidId)
      Defines orcidId Attribute
      Parameters:
      pOrcidId - value to set
    • withOrcidId

      public Person withOrcidId(org.ivoa.dm.ivoa.StringIdentifier pOrcidId)
    • createPerson

      public static Person createPerson(Consumer<Person.PersonBuilder> f)
      create a Person 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations