Advertisement
Guest User

dsfdsf

a guest
Mar 5th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 8.14 KB | None | 0 0
  1. package com.incentro.tmm.main.model;
  2.  
  3. import javax.persistence.*;
  4. import java.util.Currency;
  5.  
  6. @Entity
  7. @Table(name="Profile")
  8. public class Profile {
  9.  
  10.  
  11.     @Id
  12.     @GeneratedValue(strategy = GenerationType.AUTO)
  13.     @Column(name = "id", updatable = false, nullable = false)
  14.     private long id;
  15.  
  16.     /**
  17.      * ===================== EXPERT COLUMNS ====================
  18.      */
  19.  
  20.     /**
  21.      * EXPERT PERSONAL INFORMATION
  22.      */
  23.     @Column(name = "first_name", nullable = false)
  24.     private String firstName;
  25.  
  26.     @Column(name = "last_name", nullable = false)
  27.     private String lastName;
  28.  
  29.     /**
  30.     * List, single selection: male/female
  31.      * */
  32.     @Column(name = "gender", nullable = false)
  33.     private String gender;
  34.  
  35.     /**
  36.      * List, single selection
  37.       */
  38.     @Column(name = "country_of_residence", nullable = false)
  39.     private String countryOfResidence;
  40.  
  41.     /**
  42.      * List, single selection
  43.      */
  44.     @Column(name = "city_of_residence", nullable = false)
  45.     private String cityOfResidence;
  46.  
  47.     @Column(name = "email_address", nullable = false)
  48.     private String emailAddress;
  49.  
  50.     @Column(name = "password", nullable = false)
  51.     private String password;
  52.  
  53.     @Column(name = "date_of_birth", nullable = false)
  54.     private String dateOfBirth;
  55.  
  56.     /**
  57.      * List, single selection
  58.      */
  59.     @Column(name = "nationality", nullable = false)
  60.     private String nationality;
  61.  
  62.     @Column(name = "current_or_last_profession", nullable = false)
  63.     private String currentOrLastProfession;
  64.  
  65.     @Column(name = "current_or_last_company", nullable = true)
  66.     private String currentOrLastCompany;
  67.  
  68.     @Column(name = "retired", nullable = false)
  69.     private boolean retired;
  70.  
  71.     /**
  72.      * EXPERT ORGANISATION INFO (ONLY CHANGEABLE BY ADMIN IN THIS MVP)
  73.      */
  74.     @Column(name = "associated_organisation", nullable = true)
  75.     private String associatedOrganisation;
  76.  
  77.     @Column(name = "email_organisation", nullable = true)
  78.     private String emailOrganisation;
  79.  
  80.     @Column(name = "verified", nullable = false)
  81.     private boolean verified;
  82.  
  83.     /**
  84.      * EXPERT EXPERTISE PROFILE
  85.      */
  86.  
  87.     /**
  88.      * List, single selection
  89.       */
  90.     @Column(name = "main_expertise", nullable = false)
  91.     private String mainExpertise;
  92.  
  93.     /**
  94.      * List, single selection
  95.      */
  96.     @Column(name = "sub_expertise", nullable = false)
  97.     private String subExpertise;
  98.  
  99.     /**
  100.      * List, multi selection
  101.      */
  102.     @Column(name = "sectors_expertise", nullable = false)
  103.     private String sectorsExpertise;
  104.  
  105.     @Column(name = "years_main_expertise", nullable = false)
  106.     private int yearsMainExpertise;
  107.  
  108.     /**
  109.      * List, multi selection
  110.      */
  111.     @Column(name = "main_expertise_type", nullable = false)
  112.     private String mainExpertiseType;
  113.  
  114.     /**
  115.      * List, multi selection
  116.      */
  117.     @Column(name = "languages", nullable = false)
  118.     private String languages;
  119.  
  120.     /**
  121.      * List, multi selection
  122.      */
  123.     @Column(name = "countries_operated", nullable = false)
  124.     private String countriesOperated;
  125.  
  126.     @Column(name = "description_expertise", nullable = false)
  127.     private String descriptionExpertise;
  128.  
  129.     /**
  130.      * EXPERT REVIEW (ONLY CHANGEABLE BY ADMIN IN THIS MVP)
  131.      */
  132.  
  133.     @Column(name = "rating", nullable = true)
  134.     private double rating;
  135.     // average rating received, 1 to 5 stars
  136.  
  137.     @Column(name = "review_text", nullable = true)
  138.     private String reviewText;
  139.  
  140.     /**
  141.      * EXPERT AVAILABILITY
  142.       */
  143.  
  144.     @Column(name = "start_date", nullable = false)
  145.     private String startDate;
  146.  
  147.     @Column(name = "end_date", nullable = false)
  148.     private String endDate;
  149.  
  150.     @Column(name = "hours_available", nullable = false)
  151.     private int hoursAvailable;
  152.  
  153.     /**
  154.      * List, multi selection
  155.      */
  156.     @Column(name = "availability_day", nullable = false)
  157.     private String availabilityDay;
  158.  
  159.     /**
  160.      * List, multi selection
  161.      */
  162.     @Column(name = "availability_week", nullable = false)
  163.     private String availabilityWeek;
  164.  
  165.  
  166.     /**
  167.      * =============================== SME COLUMNS ===================================
  168.       */
  169.  
  170.     /**
  171.      * SME CONTACT
  172.      */
  173.     @Column(name = "sme_name", nullable = false)
  174.     private String smeName;
  175.  
  176.     @Column(name = "sme_address", nullable = false)
  177.     private String smeAddress;
  178.  
  179.     @Column(name = "sme_city", nullable = false)
  180.     private String smeCity;
  181.  
  182.     @Column(name = "sme_zipcode", nullable = false)
  183.     private String smeZipcode;
  184.  
  185.     @Column(name = "sme_country", nullable = false)
  186.     private String smeCountry;
  187.  
  188.     /**
  189.      *SME CONTACT PERSON (ALREADY IN EXPERT PERSONAL INFORMATION COLUMNS)
  190.      //    @Column(name = "first_name", nullable = false)
  191.      //    private String firstName;
  192.      //
  193.      //    @Column(name = "last_name", nullable = false)
  194.      //    private String lastName;
  195.      //
  196.      //    // List, single selection
  197.      //    @Column(name = "gender", nullable = false)
  198.      //    private String gender;
  199.      //
  200.      //    @Column(name = "email_address", nullable = false)
  201.      //    private String emailAddress;
  202.      //
  203.      //    @Column(name = "password", nullable = false)
  204.      //    private String password;
  205.      //
  206.      //    @Column(name = "date_of_birth", nullable = false)
  207.      //    private String dateOfBirth;
  208.      //
  209.      //    // List, single selection
  210.      //    @Column(name = "nationality", nullable = false)
  211.      //    private String nationality;
  212.      *
  213.      */
  214.  
  215.  
  216.     /**
  217.      * SME BACKGROUND INFO
  218.       */
  219.     @Column(name = "year_founded", nullable = false)
  220.     private int yearFounded;
  221.  
  222.     /**
  223.      * List, single selection
  224.      */
  225.     @Column(name = "legal_status", nullable = false)
  226.     private String legalStatus;
  227.  
  228.     @Column(name = "state_ownership", nullable = false)
  229.     private boolean stateOwnership;
  230.  
  231.  
  232.     // CONDITIONAL MANDATORY. ONLY DISPLAY IF stateOwnership = true
  233.     @Column(name = "state_ownership_since", nullable = true)
  234.     private String stateOwnershipSince;
  235.  
  236.     // CONDITIONAL OPTIONAL. ONLY DISPLAY IF stateOwnership = true
  237.     @Column(name = "state_ownership_until", nullable = true)
  238.     private String stateOwnershipUntil;
  239.  
  240.     @Column(name = "foreign_ownership", nullable = false)
  241.     private boolean foreignOwnership;
  242.  
  243.     // CONDITIONAL MANDATORY. ONLY DISPLAY IF foreignOwnership = true
  244.     @Column(name = "foreign_ownership_since", nullable = true)
  245.     private String foreignOwnershipSince;
  246.  
  247.     // CONDITIONAL OPTIONAL. ONLY DISPLAY IF foreignOwnership = true
  248.     @Column(name = "foreign_ownership_until", nullable = true)
  249.     private String foreignOwnershipUntil;
  250.  
  251.     @Column(name = "joint_venture", nullable = false)
  252.     private boolean jointVenture;
  253.  
  254.     // CONDITIONAL MANDATORY. ONLY DISPLAY IF jointVenture = true
  255.     @Column(name = "joint_venture_since", nullable = true)
  256.     private String jointVentureSince;
  257.  
  258.     // CONDITIONAL OPTIONAL. ONLY DISPLAY IF jointVenture = true
  259.     @Column(name = "joint_venture_until", nullable = true)
  260.     private String jointVentureUntil;
  261.  
  262.     @Column(name = "industrial_or_export_cluster", nullable = false)
  263.     private boolean industrialOrExportCluster;
  264.  
  265.     // CONDITIONAL MANDATORY. ONLY DISPLAY IF industrialOrExportCluster = true
  266.     @Column(name = "cluster_name", nullable = true)
  267.     private String clusterName;
  268.  
  269.     /**
  270.      * List, single selection
  271.      */
  272.     @Column(name = "sector", nullable = false)
  273.     private String sector;
  274.  
  275.     @Column(name = "turnover_usd", nullable = false)
  276.     private int turnoverUsd;
  277.  
  278.     @Column(name = "percentage_exported", nullable = true)
  279.     private double percentageExported;
  280.  
  281.     // 3 free text input boxes. 1 mandatory
  282.     @Column(name = "main_products", nullable = false)
  283.     private String mainProducts;
  284.  
  285.     // List, multi selection. 1 mandatory, 3 max (country list)
  286.     @Column(name = "main_markets", nullable = false)
  287.     private String mainMarkets;
  288.  
  289.     @Column(name = "fulltime_employees", nullable = false)
  290.     private int fulltimeEmployees;
  291.  
  292.     @Column(name = "parttime_employees", nullable = false)
  293.     private int parttimeEmployees;
  294.  
  295. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement