Advertisement
IronJoo

Untitled

Dec 2nd, 2024
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.09 KB | None | 0 0
  1. package models.db.core.project;
  2.  
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import io.ebean.annotation.DbJsonB;
  5. import jakarta.persistence.*;
  6. import models.db.core.enums.project.ProjectResearcherParticipationType;
  7. import utils.core.common.GenericInstitution;
  8.  
  9. /**
  10.  * This class represents the participation
  11.  * of an external institution in a project call submission
  12.  *
  13.  * @author jfsfo
  14.  */
  15.  
  16. @Entity
  17. @Table(name = "core_project_project_call_submission_external_institution_participation")
  18. public class ProjectCallSubmissionExternalInstitutionParticipation {
  19.  
  20.     @Id
  21.     private Long id;
  22.  
  23.     // The project call submission in which the institution participates
  24.     @ManyToOne
  25.     private ProjectCallSubmission projectCallSubmission;
  26.  
  27.     // The type of participation of the institution
  28.     @ManyToOne
  29.     private ProjectResearcherParticipationType participationType;
  30.  
  31.     // The participating external institution
  32.     @DbJsonB
  33.     @JsonProperty(value = "generic_institution")
  34.     @Column(name = "generic_institution")
  35.     private GenericInstitution genericInstitution;
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement