Guest User

Untitled

a guest
Jun 20th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.93 KB | None | 0 0
  1. package com.trafikvegundem.service.entities;
  2.  
  3. import java.util.Date;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.GeneratedValue;
  8. import javax.persistence.GenerationType;
  9. import javax.persistence.Id;
  10. import javax.persistence.Table;
  11. import javax.persistence.Temporal;
  12. import javax.persistence.TemporalType;
  13. import java.io.Serializable;
  14.  
  15. @Entity
  16. @Table(name="furmemberskan")
  17. public class Member {
  18.  
  19. @Id
  20. @GeneratedValue(strategy = GenerationType.IDENTITY)
  21. private long id;
  22.  
  23. private int accountType;
  24.  
  25. private String username;
  26.  
  27. private String password;
  28.  
  29. private String uniqueKey;
  30.  
  31. private String cryptedUniqueKey;
  32.  
  33. private String name;
  34.  
  35. private String surname;
  36.  
  37. private String profilePhotoUrl;
  38.  
  39. private String eMailAdress;
  40.  
  41. private String mobilePhone;
  42.  
  43. private int city=38;
  44.  
  45. @Column(nullable = true)
  46. private int district=0;
  47.  
  48. @Temporal(TemporalType.TIMESTAMP)
  49. private Date registerDate;
  50.  
  51. private int bloodType;
  52.  
  53. private boolean accountConfirmation=true;
  54.  
  55. private boolean isBanned=false;
  56.  
  57. @Temporal(TemporalType.TIMESTAMP)
  58. private Date banUnlockDate;
  59.  
  60. private int publishedLostInfo=0;
  61.  
  62. private int publishedNew=0;
  63.  
  64. private int publishedInfo=0;
  65.  
  66. private int publishedCar=0;
  67.  
  68. private int publishedHome=0;
  69.  
  70. private int publishedAd=0;
  71.  
  72. private int publishedBloodAd=0;
  73.  
  74. private int trueAdCount=0;
  75.  
  76. private int falseAdCount=0;
  77.  
  78. private boolean isPremium=false;
  79.  
  80. private int premiumCount=0;
  81.  
  82. public Member() {
  83.  
  84. }
  85.  
  86. public Member(int accountType, String username, String password, String uniqueKey, String cryptedUniqueKey,
  87. String name, String surname, String profilePhotoUrl, String eMailAdress, String mobilePhone, int city,
  88. int district, Date registerDate, int bloodType, boolean accountConfirmation, boolean isBanned,
  89. Date banUnlockDate, int publishedLostInfo, int publishedNew, int publishedInfo, int publishedCar,
  90. int publishedHome, int publishedAd, int publishedBloodAd, int trueAdCount, int falseAdCount,
  91. boolean isPremium, int premiumCount) {
  92. super();
  93. this.accountType = accountType;
  94. this.username = username;
  95. this.password = password;
  96. this.uniqueKey = uniqueKey;
  97. this.cryptedUniqueKey = cryptedUniqueKey;
  98. this.name = name;
  99. this.surname = surname;
  100. this.profilePhotoUrl = profilePhotoUrl;
  101. this.eMailAdress = eMailAdress;
  102. this.mobilePhone = mobilePhone;
  103. this.city = city;
  104. this.district = district;
  105. this.registerDate = registerDate;
  106. this.bloodType = bloodType;
  107. this.accountConfirmation = accountConfirmation;
  108. this.isBanned = isBanned;
  109. this.banUnlockDate = banUnlockDate;
  110. this.publishedLostInfo = publishedLostInfo;
  111. this.publishedNew = publishedNew;
  112. this.publishedInfo = publishedInfo;
  113. this.publishedCar = publishedCar;
  114. this.publishedHome = publishedHome;
  115. this.publishedAd = publishedAd;
  116. this.publishedBloodAd = publishedBloodAd;
  117. this.trueAdCount = trueAdCount;
  118. this.falseAdCount = falseAdCount;
  119. this.isPremium = isPremium;
  120. this.premiumCount = premiumCount;
  121. }
  122.  
  123. public int getAccountType() {
  124. return accountType;
  125. }
  126.  
  127. public void setAccountType(int accountType) {
  128. this.accountType = accountType;
  129. }
  130.  
  131. public String getUsername() {
  132. return username;
  133. }
  134.  
  135. public void setUsername(String username) {
  136. this.username = username;
  137. }
  138.  
  139. public String getPassword() {
  140. return password;
  141. }
  142.  
  143. public void setPassword(String password) {
  144. this.password = password;
  145. }
  146.  
  147. public String getUniqueKey() {
  148. return uniqueKey;
  149. }
  150.  
  151. public void setUniqueKey(String uniqueKey) {
  152. this.uniqueKey = uniqueKey;
  153. }
  154.  
  155. public String getCryptedUniqueKey() {
  156. return cryptedUniqueKey;
  157. }
  158.  
  159. public void setCryptedUniqueKey(String cryptedUniqueKey) {
  160. this.cryptedUniqueKey = cryptedUniqueKey;
  161. }
  162.  
  163. public String getName() {
  164. return name;
  165. }
  166.  
  167. public void setName(String name) {
  168. this.name = name;
  169. }
  170.  
  171. public String getSurname() {
  172. return surname;
  173. }
  174.  
  175. public void setSurname(String surname) {
  176. this.surname = surname;
  177. }
  178.  
  179. public String getProfilePhotoUrl() {
  180. return profilePhotoUrl;
  181. }
  182.  
  183. public void setProfilePhotoUrl(String profilePhotoUrl) {
  184. this.profilePhotoUrl = profilePhotoUrl;
  185. }
  186.  
  187. public String geteMailAdress() {
  188. return eMailAdress;
  189. }
  190.  
  191. public void seteMailAdress(String eMailAdress) {
  192. this.eMailAdress = eMailAdress;
  193. }
  194.  
  195. public String getMobilePhone() {
  196. return mobilePhone;
  197. }
  198.  
  199. public void setMobilePhone(String mobilePhone) {
  200. this.mobilePhone = mobilePhone;
  201. }
  202.  
  203. public int getCity() {
  204. return city;
  205. }
  206.  
  207. public void setCity(int city) {
  208. this.city = city;
  209. }
  210.  
  211. public int getDistrict() {
  212. return district;
  213. }
  214.  
  215. public void setDistrict(int district) {
  216. this.district = district;
  217. }
  218.  
  219. public Date getRegisterDate() {
  220. return registerDate;
  221. }
  222.  
  223. public void setRegisterDate(Date registerDate) {
  224. this.registerDate = registerDate;
  225. }
  226.  
  227. public int getBloodType() {
  228. return bloodType;
  229. }
  230.  
  231. public void setBloodType(int bloodType) {
  232. this.bloodType = bloodType;
  233. }
  234.  
  235. public boolean isAccountConfirmation() {
  236. return accountConfirmation;
  237. }
  238.  
  239. public void setAccountConfirmation(boolean accountConfirmation) {
  240. this.accountConfirmation = accountConfirmation;
  241. }
  242.  
  243. public boolean isBanned() {
  244. return isBanned;
  245. }
  246.  
  247. public void setBanned(boolean isBanned) {
  248. this.isBanned = isBanned;
  249. }
  250.  
  251. public Date getBanUnlockDate() {
  252. return banUnlockDate;
  253. }
  254.  
  255. public void setBanUnlockDate(Date banUnlockDate) {
  256. this.banUnlockDate = banUnlockDate;
  257. }
  258.  
  259. public int getPublishedLostInfo() {
  260. return publishedLostInfo;
  261. }
  262.  
  263. public void setPublishedLostInfo(int publishedLostInfo) {
  264. this.publishedLostInfo = publishedLostInfo;
  265. }
  266.  
  267. public int getPublishedNew() {
  268. return publishedNew;
  269. }
  270.  
  271. public void setPublishedNew(int publishedNew) {
  272. this.publishedNew = publishedNew;
  273. }
  274.  
  275. public int getPublishedInfo() {
  276. return publishedInfo;
  277. }
  278.  
  279. public void setPublishedInfo(int publishedInfo) {
  280. this.publishedInfo = publishedInfo;
  281. }
  282.  
  283. public int getPublishedCar() {
  284. return publishedCar;
  285. }
  286.  
  287. public void setPublishedCar(int publishedCar) {
  288. this.publishedCar = publishedCar;
  289. }
  290.  
  291. public int getPublishedHome() {
  292. return publishedHome;
  293. }
  294.  
  295. public void setPublishedHome(int publishedHome) {
  296. this.publishedHome = publishedHome;
  297. }
  298.  
  299. public int getPublishedAd() {
  300. return publishedAd;
  301. }
  302.  
  303. public void setPublishedAd(int publishedAd) {
  304. this.publishedAd = publishedAd;
  305. }
  306.  
  307. public int getPublishedBloodAd() {
  308. return publishedBloodAd;
  309. }
  310.  
  311. public void setPublishedBloodAd(int publishedBloodAd) {
  312. this.publishedBloodAd = publishedBloodAd;
  313. }
  314.  
  315. public int getTrueAdCount() {
  316. return trueAdCount;
  317. }
  318.  
  319. public void setTrueAdCount(int trueAdCount) {
  320. this.trueAdCount = trueAdCount;
  321. }
  322.  
  323. public int getFalseAdCount() {
  324. return falseAdCount;
  325. }
  326.  
  327. public void setFalseAdCount(int falseAdCount) {
  328. this.falseAdCount = falseAdCount;
  329. }
  330.  
  331. public boolean isPremium() {
  332. return isPremium;
  333. }
  334.  
  335. public void setPremium(boolean isPremium) {
  336. this.isPremium = isPremium;
  337. }
  338.  
  339. public int getPremiumCount() {
  340. return premiumCount;
  341. }
  342.  
  343. public void setPremiumCount(int premiumCount) {
  344. this.premiumCount = premiumCount;
  345. }
  346.  
  347.  
  348.  
  349. }
Add Comment
Please, Sign In to add comment