You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

418 lines
10 KiB

2 years ago
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
2 years ago
2 years ago
​
2 years ago
2 years ago
​
2 years ago
​
2 years ago
​
2 years ago
​
2 years ago
​
2 years ago
​
​
​
​
​
​
2 years ago
2 years ago
​
​
​
​
​
2 years ago
2 years ago
2 years ago
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
  1. package com.gcc.communityHall.entity;
  2. import java.time.LocalDate;
  3. import java.util.Date;
  4. import java.util.List;
  5. import com.fasterxml.jackson.annotation.JsonIgnore;
  6. import org.hibernate.annotations.SQLRestriction;
  7. import jakarta.persistence.CascadeType;
  8. import jakarta.persistence.Column;
  9. import jakarta.persistence.Entity;
  10. import jakarta.persistence.EnumType;
  11. import jakarta.persistence.Enumerated;
  12. import jakarta.persistence.FetchType;
  13. import jakarta.persistence.GeneratedValue;
  14. import jakarta.persistence.GenerationType;
  15. import jakarta.persistence.Id;
  16. import jakarta.persistence.OneToMany;
  17. @Entity
  18. public class HallDetails {
  19. @Id
  20. @GeneratedValue(strategy = GenerationType.IDENTITY)
  21. private int hallId;
  22. private String hallName;
  23. private String doorNo;
  24. private String street;
  25. private String area;
  26. private int pinCode;
  27. private String division;
  28. private String zone;
  29. @Column(name = "land_mark")
  30. private String landMark;
  31. @Column(name = "latitude")
  32. private String latitude;
  33. @Column(name = "longitude")
  34. private String longitude;
  35. private float hallArea;
  36. @Column(name = "seating_capacity")
  37. private int seatingCapacity;
  38. @Column(name = "parking_capacity")
  39. private String parkingCapacity;
  40. @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "hallDetails")
  41. private List<HallImages> hallImagesList;
  42. @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "hallDetails")
  43. @SQLRestriction("is_active = true AND is_delete = false")
  44. private List<FloorDetails> floorDetailsList;
  45. @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "hallDetails")
  46. private List<HallDetailsConcession> hallDetailsConcession;
  47. @Column(name = "hall_Incharge_no", nullable = false)
  48. private long hallInchargeMobno;
  49. @Column(name = "hall_Incharge_name", nullable = false)
  50. private String hallInchargeName;
  51. @Column(name = "deposit_amount", nullable = false)
  52. private float depositAmount;
  53. @Column(name = "half_deposit_amount", nullable = false)
  54. private float halfDepositAmount;
  55. @Column(name = "full_day_rent", nullable = false)
  56. private float fullDayRent;
  57. @Column(name = "half_day_rent", nullable = false)
  58. private float halfDayRent;
  59. private float gst;
  60. @Column(nullable = false, columnDefinition = "BOOLEAN DEFAULT true")
  61. private boolean isActive = true;
  62. @Column(nullable = false, columnDefinition = "BOOLEAN DEFAULT false")
  63. private boolean isDelete = false;
  64. @Column(name = "c_date")
  65. private LocalDate createddate;
  66. @Column(name = " updated_id")
  67. private String updatedId;
  68. @Column(name = "update_date")
  69. private Date updatedDate = new Date();
  70. private String ebNumber;
  71. private float ebCostPerUnit;
  72. private String city;
  73. @Column(nullable = false, columnDefinition = "BOOLEAN DEFAULT false")
  74. private boolean SGE = false;
  75. @Column(nullable = false, columnDefinition = "BOOLEAN DEFAULT false")
  76. private boolean CGE = false;
  77. private float SGEdiscount;
  78. private float CGEdiscount;
  79. @Column(name = "is_reason_restricted", nullable = false, columnDefinition = "BOOLEAN DEFAULT false")
  80. private boolean isReasonRestricted = false;
  81. @Column(name = "mf_dt_unit", columnDefinition = "INT DEFAULT 1")
  82. private int MfDtUnit = 1;
  83. @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "hallDetails")
  84. @JsonIgnore
  85. private List<HallReasonRestriction> hallReasonRestrictions;
  86. public boolean isReasonRestricted() {
  87. return isReasonRestricted;
  88. }
  89. public void setReasonRestricted(boolean isReasonRestricted) {
  90. this.isReasonRestricted = isReasonRestricted;
  91. }
  92. public List<HallReasonRestriction> getHallReasonRestrictions() {
  93. return hallReasonRestrictions;
  94. }
  95. public void setHallReasonRestrictions(List<HallReasonRestriction> hallReasonRestrictions) {
  96. this.hallReasonRestrictions = hallReasonRestrictions;
  97. }
  98. public int getHallId() {
  99. return hallId;
  100. }
  101. public void setHallId(int hallId) {
  102. this.hallId = hallId;
  103. }
  104. public String getHallName() {
  105. return hallName;
  106. }
  107. public void setHallName(String hallName) {
  108. this.hallName = hallName;
  109. }
  110. public String getDoorNo() {
  111. return doorNo;
  112. }
  113. public void setDoorNo(String doorNo) {
  114. this.doorNo = doorNo;
  115. }
  116. public String getStreet() {
  117. return street;
  118. }
  119. public void setStreet(String street) {
  120. this.street = street;
  121. }
  122. public String getArea() {
  123. return area;
  124. }
  125. public void setArea(String area) {
  126. this.area = area;
  127. }
  128. public int getPinCode() {
  129. return pinCode;
  130. }
  131. public void setPinCode(int pinCode) {
  132. this.pinCode = pinCode;
  133. }
  134. public String getDivision() {
  135. return division;
  136. }
  137. public void setDivision(String division) {
  138. this.division = division;
  139. }
  140. public String getZone() {
  141. return zone;
  142. }
  143. public void setZone(String zone) {
  144. this.zone = zone;
  145. }
  146. public String getLandMark() {
  147. return landMark;
  148. }
  149. public void setLankMark(String landMark) {
  150. this.landMark = landMark;
  151. }
  152. public String getLatitude() {
  153. return latitude;
  154. }
  155. public void setLatitude(String latitude) {
  156. this.latitude = latitude;
  157. }
  158. public String getLongitude() {
  159. return longitude;
  160. }
  161. public void setLongitude(String longitude) {
  162. this.longitude = longitude;
  163. }
  164. public float getHallArea() {
  165. return hallArea;
  166. }
  167. public void setHallArea(float hallArea) {
  168. this.hallArea = hallArea;
  169. }
  170. public int getSeatingCapacity() {
  171. return seatingCapacity;
  172. }
  173. public void setSeatingCapacity(int seatingCapacity) {
  174. this.seatingCapacity = seatingCapacity;
  175. }
  176. public String getParkingCapacity() {
  177. return parkingCapacity;
  178. }
  179. public void setParkingCapacity(String parkingCapacity) {
  180. this.parkingCapacity = parkingCapacity;
  181. }
  182. public List<HallImages> getHallImagesList() {
  183. return hallImagesList;
  184. }
  185. public void setHallImagesList(List<HallImages> hallImagesList) {
  186. this.hallImagesList = hallImagesList;
  187. }
  188. public long getHallInchargeMobno() {
  189. return hallInchargeMobno;
  190. }
  191. public void setHallInchargeMobno(long hallInchargeMobno) {
  192. this.hallInchargeMobno = hallInchargeMobno;
  193. }
  194. public String getHallInchargeName() {
  195. return hallInchargeName;
  196. }
  197. public void setHallInchargeName(String hallInchargeName) {
  198. this.hallInchargeName = hallInchargeName;
  199. }
  200. public float getDepositAmount() {
  201. return depositAmount;
  202. }
  203. public void setDepositAmount(float depositAmount) {
  204. this.depositAmount = depositAmount;
  205. }
  206. public float getFullDayRent() {
  207. return fullDayRent;
  208. }
  209. public void setFullDayRent(float fullDayRent) {
  210. this.fullDayRent = fullDayRent;
  211. }
  212. public float getHalfDayRent() {
  213. return halfDayRent;
  214. }
  215. public void setHalfDayRent(float halfDayRent) {
  216. this.halfDayRent = halfDayRent;
  217. }
  218. public float getGst() {
  219. return gst;
  220. }
  221. public void setGst(float gst) {
  222. this.gst = gst;
  223. }
  224. public boolean isActive() {
  225. return isActive;
  226. }
  227. public void setActive(boolean isActive) {
  228. this.isActive = isActive;
  229. }
  230. public boolean isDelete() {
  231. return isDelete;
  232. }
  233. public void setDelete(boolean isDelete) {
  234. this.isDelete = isDelete;
  235. }
  236. public LocalDate getCreateddate() {
  237. return createddate;
  238. }
  239. public void setCreateddate(LocalDate createddate) {
  240. this.createddate = createddate;
  241. }
  242. public String getUpdatedId() {
  243. return updatedId;
  244. }
  245. public void setUpdatedId(String updatedId) {
  246. this.updatedId = updatedId;
  247. }
  248. public Date getUpdatedDate() {
  249. return updatedDate;
  250. }
  251. public void setUpdatedDate(Date updatedDate) {
  252. this.updatedDate = updatedDate;
  253. }
  254. public String getEbNumber() {
  255. return ebNumber;
  256. }
  257. public void setEbNumber(String ebNumber) {
  258. this.ebNumber = ebNumber;
  259. }
  260. public String getCity() {
  261. return city;
  262. }
  263. public void setCity(String city) {
  264. this.city = city;
  265. }
  266. public void setLandMark(String landMark) {
  267. this.landMark = landMark;
  268. }
  269. public float getEbCostPerUnit() {
  270. return ebCostPerUnit;
  271. }
  272. public void setEbCostPerUnit(float ebCostPerUnit) {
  273. this.ebCostPerUnit = ebCostPerUnit;
  274. }
  275. public List<FloorDetails> getFloorDetailsList() {
  276. return floorDetailsList;
  277. }
  278. public void setFloorDetailsList(List<FloorDetails> floorDetailsList) {
  279. this.floorDetailsList = floorDetailsList;
  280. }
  281. public boolean isSGE() {
  282. return SGE;
  283. }
  284. public void setSGE(boolean sGE) {
  285. SGE = sGE;
  286. }
  287. public boolean isCGE() {
  288. return CGE;
  289. }
  290. public void setCGE(boolean cGE) {
  291. CGE = cGE;
  292. }
  293. public float getSGEdiscount() {
  294. return SGEdiscount;
  295. }
  296. public void setSGEdiscount(float sGEdiscount) {
  297. SGEdiscount = sGEdiscount;
  298. }
  299. public float getCGEdiscount() {
  300. return CGEdiscount;
  301. }
  302. public void setCGEdiscount(float cGEdiscount) {
  303. CGEdiscount = cGEdiscount;
  304. }
  305. public List<HallDetailsConcession> getHallDetailsConcession() {
  306. return hallDetailsConcession;
  307. }
  308. public void setHallDetailsConcession(List<HallDetailsConcession> hallDetailsConcession) {
  309. this.hallDetailsConcession = hallDetailsConcession;
  310. }
  311. public float getHalfDepositAmount() {
  312. return halfDepositAmount;
  313. }
  314. public void setHalfDepositAmount(float halfDepositAmount) {
  315. this.halfDepositAmount = halfDepositAmount;
  316. }
  317. public int getMfDtUnit() {
  318. return MfDtUnit;
  319. }
  320. public void setMfDtUnit(int MfDtUnit) {
  321. this.MfDtUnit = MfDtUnit;
  322. }
  323. }