| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- /*
- * Copyright (c) Andrew Grant of Carrick Software 19/03/2025, 01:34. All rights reserved.
- *
- */
- package scot.carricksoftware.grants.domains.census;
- import jakarta.persistence.*;
- import scot.carricksoftware.grants.BaseEntity;
- import scot.carricksoftware.grants.domains.people.Person;
- import scot.carricksoftware.grants.enums.censusentry.*;
- import scot.carricksoftware.grants.enums.general.YesNo;
- @Entity
- public class CensusEntry extends BaseEntity {
- private String name;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @ManyToOne
- @JoinColumn(name = "`census_id`")
- private Census census;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @ManyToOne
- @JoinColumn(name = "`person_id`")
- private Person person;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`relationship`")
- private CensusEntryRelationship relationship;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`gaelic`")
- private CensusEntryGaelic gaelic;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`condition`")
- private CensusEntryCondition condition;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`worker`")
- private CensusEntryWorker worker;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`sex`")
- private CensusEntrySex sex;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`age`")
- private String age;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`where_born`")
- private String whereBorn;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`birth_day`")
- private String birthDay;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`birth_year`")
- private String birthYear;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`personal_occupation`")
- private String personalOccupation;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`notes`")
- private String notes;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`children_who_have_died`")
- private String childrenWhoHaveDied;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`children_still_alive`")
- private String childrenStillAlive;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`children_born_alive`")
- private String childrenBornAlive;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`years_Completed_Marriage`")
- private String yearsCompletedMarriage;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Enumerated(EnumType.STRING)
- @Column(name = "`working_at_home`")
- private YesNo workingAtHome;
- @SuppressWarnings("JpaDataSourceORMInspection")
- @Column(name = "`industry_or_service`")
- private String industryOrService;
- public Person getPerson() {
- return person;
- }
- public void setPerson(Person person) {
- this.person = person;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Census getCensus() {
- return census;
- }
- public void setCensus(Census census) {
- this.census = census;
- }
- public String toString() {
- return census.toString();
- }
- public CensusEntryRelationship getRelationship() {
- return relationship;
- }
- public void setRelationship(CensusEntryRelationship relationship) {
- this.relationship = relationship;
- }
- public CensusEntryCondition getCondition() {
- return this.condition;
- }
- public void setCondition(CensusEntryCondition condition) {
- this.condition = condition;
- }
- public CensusEntryGaelic getGaelic() {
- return this.gaelic;
- }
- public void setGaelic(CensusEntryGaelic gaelic) {
- this.gaelic = gaelic;
- }
- public CensusEntryWorker getWorker() {
- return this.worker;
- }
- public void setWorker(CensusEntryWorker worker) {
- this.worker = worker;
- }
- public String getAge() {
- return this.age;
- }
- public void setAge(String age) {
- this.age = age;
- }
- public String getWhereBorn() {
- return this.whereBorn;
- }
- public void setWhereBorn(String whereBorn) {
- this.whereBorn = whereBorn;
- }
- public CensusEntrySex getSex() {
- return this.sex;
- }
- public void setSex(CensusEntrySex sex) {
- this.sex = sex;
- }
- public String getBirthDay() {
- return this.birthDay;
- }
- public void setBirthDay(String birthDay) {
- this.birthDay = birthDay;
- }
- public String getBirthYear() {
- return this.birthYear;
- }
- public void setBirthYear(String birthYear) {
- this.birthYear = birthYear;
- }
- public String getPersonalOccupation() {
- return this.personalOccupation;
- }
- public void setPersonalOccupation(String occupation) {
- this.personalOccupation = occupation;
- }
- public String getNotes() {
- return notes;
- }
- public void setNotes(String notes) {
- this.notes = notes;
- }
- public String getChildrenWhoHaveDied() {
- return childrenWhoHaveDied;
- }
- public void setChildrenWhoHaveDied(String childrenWhoHaveDied) {
- this.childrenWhoHaveDied = childrenWhoHaveDied;
- }
- public String getChildrenStillAlive() {
- return childrenStillAlive;
- }
- public void setChildrenStillAlive(String childrenStillAlive) {
- this.childrenStillAlive = childrenStillAlive;
- }
- public String getChildrenBornAlive() {
- return childrenBornAlive;
- }
- public void setChildrenBornAlive(String childrenBornAlive) {
- this.childrenBornAlive = childrenBornAlive;
- }
- public String getYearsCompletedMarriage() {
- return yearsCompletedMarriage;
- }
- public void setYearsCompletedMarriage(String yearsCompletedMarriage) {
- this.yearsCompletedMarriage = yearsCompletedMarriage;
- }
- public YesNo getWorkingAtHome() {
- return workingAtHome;
- }
- public void setWorkingAtHome(YesNo yesNo) {
- this.workingAtHome = yesNo;
- }
- public String getIndustryOrService() {
- return industryOrService;
- }
- public void setIndustryOrService(String industryOrService) {
- this.industryOrService = industryOrService;
- }
- }
|