Advertisement
IronJoo

Untitled

Sep 2nd, 2024
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.69 KB | None | 0 0
  1. @Entity
  2. @Table(name = "core_work_unit_partnership")
  3. public class WorkUnitPartnership extends Model {
  4.  
  5.     @Id
  6.     @GeneratedValue(strategy = GenerationType.SEQUENCE)
  7.     @Column(name = "id", nullable = false)
  8.     private Long id;
  9.    
  10.     // The work unit of the user inserting the partnership
  11.     @ManyToOne
  12.     private WorkUnit workUnit;
  13.  
  14.     // The type of partnership (value provided by a custom list)
  15.     @ManyToOne
  16.     private CustomListElement partnershipType;
  17.  
  18.     // The geographical scope of the partnership
  19.     @Column(name = "geographical_scope")
  20.     private GeographicalScopeEnum geographicalScope;
  21.  
  22.     // The name of the partnership (in Portuguese)
  23.     @Column(name = "name_pt")
  24.     private String namePt;
  25.  
  26.     // The name of the partnership (in English)
  27.     @Column(name = "name_en")
  28.     private String nameEn;
  29.  
  30.     // A more detailed description of the partnership (in Portuguese)
  31.     @Column(name = "description_pt", length = MAX_SIZE_DESCRIPTION)
  32.     private String descriptionPt;
  33.  
  34.     // A more detailed description of the partnership (in English)
  35.     @Column(name = "description_en", length = MAX_SIZE_DESCRIPTION)
  36.     private String descriptionEn;
  37.  
  38.     // The year in which the partnership initiated
  39.     @Column(name = "start_year")
  40.     private Integer startYear;
  41.  
  42.     // The year in which the partnership ended
  43.     @Column(name = "end_year")
  44.     private Integer endYear;
  45.  
  46.     @DbJsonB
  47.     @Column(name = "extra_data")
  48.     private WorkUnitPartnershipExtraData extraData;
  49.  
  50.     // Whether the partnership is currently public in the system
  51.     @JsonProperty(value = "privacy_level")
  52.     @Column(name = "privacy_level")
  53.     private PrivacyLevelEnum privacyLevel;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement