|
@@ -22,9 +22,10 @@ import scot.carricksoftware.grants.enums.census.CensusDate;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
-@Entity
|
|
|
|
|
|
|
+@Entity(name="`census`")
|
|
|
public class Census extends BaseEntity {
|
|
public class Census extends BaseEntity {
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Enumerated(EnumType.STRING)
|
|
@Enumerated(EnumType.STRING)
|
|
|
@Column(name = "`census_date`")
|
|
@Column(name = "`census_date`")
|
|
|
private CensusDate censusDate;
|
|
private CensusDate censusDate;
|
|
@@ -32,35 +33,45 @@ public class Census extends BaseEntity {
|
|
|
@OneToMany(mappedBy = "census", cascade = CascadeType.ALL, orphanRemoval = true)
|
|
@OneToMany(mappedBy = "census", cascade = CascadeType.ALL, orphanRemoval = true)
|
|
|
private List<CensusEntry> censusEntries = new ArrayList<>();
|
|
private List<CensusEntry> censusEntries = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@ManyToOne
|
|
@ManyToOne
|
|
|
@JoinColumn(name = "`place_id`")
|
|
@JoinColumn(name = "`place_id`")
|
|
|
private Place place;
|
|
private Place place;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Enumerated(EnumType.STRING)
|
|
@Enumerated(EnumType.STRING)
|
|
|
@Column(name = "`boundary_type`")
|
|
@Column(name = "`boundary_type`")
|
|
|
private CensusBoundaryType boundaryType;
|
|
private CensusBoundaryType boundaryType;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`inhabited_rooms`")
|
|
@Column(name = "`inhabited_rooms`")
|
|
|
private String inhabitedRooms;
|
|
private String inhabitedRooms;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`rooms_with_windows`")
|
|
@Column(name = "`rooms_with_windows`")
|
|
|
private String roomsWithWindows;
|
|
private String roomsWithWindows;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`filled_in_by`")
|
|
@Column(name = "`filled_in_by`")
|
|
|
private String filledInBy;
|
|
private String filledInBy;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`total_rooms`")
|
|
@Column(name = "`total_rooms`")
|
|
|
private String totalRooms;
|
|
private String totalRooms;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name= "`rooms_occupied`")
|
|
@Column(name= "`rooms_occupied`")
|
|
|
private String roomsOccupied;
|
|
private String roomsOccupied;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`inhabited_houses`")
|
|
@Column(name = "`inhabited_houses`")
|
|
|
private String inhabitedHouses;
|
|
private String inhabitedHouses;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`uninhabited_houses`")
|
|
@Column(name = "`uninhabited_houses`")
|
|
|
private String uninhabitedHouses;
|
|
private String uninhabitedHouses;
|
|
|
|
|
|
|
|
|
|
+ @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@Column(name = "`people_in_houses`")
|
|
@Column(name = "`people_in_houses`")
|
|
|
private String peopleInHouses;
|
|
private String peopleInHouses;
|
|
|
|
|
|