Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package models.db.core.project;
- import com.fasterxml.jackson.annotation.JsonIncludeProperties;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import io.ebean.Model;
- import io.ebean.annotation.DbJsonB;
- import jakarta.persistence.*;
- import models.db.core.enums.project.ProjectResearcherParticipationType;
- import utils.core.common.GenericInstitution;
- /**
- * This class represents the participation
- * of an external user in a project call submission
- *
- * @author jfsfo
- */
- @Entity
- @Table(name = "core_project_project_call_submission_external_user_participation")
- public class ProjectCallSubmissionExternalUserParticipation extends Model {
- public static final int MAX_SIZE_NAME = 50;
- public static final int MAX_SIZE_EMAIL = 254;
- @Id
- private Long id;
- // The name of the participating user
- @Column(name = "name", length = MAX_SIZE_NAME)
- private String name;
- // The email of the participating user
- @Column(name = "email", length = MAX_SIZE_EMAIL)
- private String email;
- // The project call submission in which the user participates
- @ManyToOne
- private ProjectCallSubmission projectCallSubmission;
- // The type of participation of the user
- @ManyToOne
- private ProjectResearcherParticipationType participationType;
- // The external institution of the user
- @DbJsonB
- @JsonProperty(value = "generic_institution")
- @Column(name = "generic_institution")
- private GenericInstitution genericInstitution;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement