Class RelatedProposal

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

@Entity @VoDml(id="proposal:RelatedProposal", role=objectType) public class RelatedProposal extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a related proposal. objectType: RelatedProposal
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • proposal

      @VoDml(id="proposal:RelatedProposal.proposal", role=reference, type="proposal:ObservingProposal", typeRole=objectType) protected ObservingProposal proposal
      ReferenceObject proposal : the related proposal. ( Multiplicity : 1 )
  • Constructor Details

    • RelatedProposal

      public RelatedProposal()
      Creates a new RelatedProposal
    • RelatedProposal

      public RelatedProposal(ObservingProposal proposal)
      full parameter constructor.
      Parameters:
      proposal - the related proposal.
    • RelatedProposal

      public RelatedProposal(RelatedProposal 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
    • updateUsing

      public void updateUsing(RelatedProposal 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.
    • getProposal

      public ObservingProposal getProposal()
      Returns proposal Reference
      Returns:
      proposal Reference
    • setProposal

      public void setProposal(ObservingProposal pProposal)
      Defines proposal Reference
      Parameters:
      pProposal - reference to set
    • createRelatedProposal

      public static RelatedProposal createRelatedProposal(Consumer<RelatedProposal.RelatedProposalBuilder> f)
      create a RelatedProposal 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