Advertisement
IronJoo

ProjectCallSubmissionExternalUserParticipation

Nov 27th, 2024
79
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.50 KB | None | 1 0
  1. package models.db.core.project;
  2.  
  3. import com.fasterxml.jackson.annotation.JsonIncludeProperties;
  4. import com.fasterxml.jackson.annotation.JsonProperty;
  5. import io.ebean.Model;
  6. import io.ebean.annotation.DbJsonB;
  7. import jakarta.persistence.*;
  8. import models.db.core.enums.project.ProjectResearcherParticipationType;
  9. import utils.core.common.GenericInstitution;
  10.  
  11. /**
  12.  * This class represents the participation
  13.  * of an external user in a project call submission
  14.  *
  15.  * @author jfsfo
  16.  */
  17.  
  18. @Entity
  19. @Table(name = "core_project_project_call_submission_external_user_participation")
  20. public class ProjectCallSubmissionExternalUserParticipation extends Model {
  21.     public static final int MAX_SIZE_NAME = 50;
  22.     public static final int MAX_SIZE_EMAIL = 254;
  23.  
  24.     @Id
  25.     private Long id;
  26.  
  27.     // The name of the participating user
  28.     @Column(name = "name", length = MAX_SIZE_NAME)
  29.     private String name;
  30.  
  31.     // The email of the participating user
  32.     @Column(name = "email", length = MAX_SIZE_EMAIL)
  33.     private String email;
  34.  
  35.     // The project call submission in which the user participates
  36.     @ManyToOne
  37.     private ProjectCallSubmission projectCallSubmission;
  38.  
  39.     // The type of participation of the user
  40.     @ManyToOne
  41.     private ProjectResearcherParticipationType participationType;
  42.  
  43.     // The external institution of the user
  44.     @DbJsonB
  45.     @JsonProperty(value = "generic_institution")
  46.     @Column(name = "generic_institution")
  47.     private GenericInstitution genericInstitution;
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement