Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name = "core_work_unit_partnership")
- public class WorkUnitPartnership extends Model {
- @Id
- @GeneratedValue(strategy = GenerationType.SEQUENCE)
- @Column(name = "id", nullable = false)
- private Long id;
- // The work unit of the user inserting the partnership
- @ManyToOne
- private WorkUnit workUnit;
- // The type of partnership (value provided by a custom list)
- @ManyToOne
- private CustomListElement partnershipType;
- // The geographical scope of the partnership
- @Column(name = "geographical_scope")
- private GeographicalScopeEnum geographicalScope;
- // The name of the partnership (in Portuguese)
- @Column(name = "name_pt")
- private String namePt;
- // The name of the partnership (in English)
- @Column(name = "name_en")
- private String nameEn;
- // A more detailed description of the partnership (in Portuguese)
- @Column(name = "description_pt", length = MAX_SIZE_DESCRIPTION)
- private String descriptionPt;
- // A more detailed description of the partnership (in English)
- @Column(name = "description_en", length = MAX_SIZE_DESCRIPTION)
- private String descriptionEn;
- // The year in which the partnership initiated
- @Column(name = "start_year")
- private Integer startYear;
- // The year in which the partnership ended
- @Column(name = "end_year")
- private Integer endYear;
- @DbJsonB
- @Column(name = "extra_data")
- private WorkUnitPartnershipExtraData extraData;
- // Whether the partnership is currently public in the system
- @JsonProperty(value = "privacy_level")
- @Column(name = "privacy_level")
- private PrivacyLevelEnum privacyLevel;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement