Guest User

mm-model

a guest
Oct 30th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.96 KB | None | 0 0
  1. package marketmanagement.model;
  2.  
  3. public class ProductDetail {
  4. private Integer productId;
  5. private String productCode;
  6. private String productName;
  7. private String productPrice;
  8. private Integer productQuntity;
  9. private String productDescription;
  10. private Integer userId;
  11. private String UserName;
  12. public Integer getProductId() {
  13. return productId;
  14. }
  15. public void setProductId(Integer productId) {
  16. this.productId = productId;
  17. }
  18. public String getProductCode() {
  19. return productCode;
  20. }
  21. public void setProductCode(String productCode) {
  22. this.productCode = productCode;
  23. }
  24. public String getProductName() {
  25. return productName;
  26. }
  27. public void setProductName(String productName) {
  28. this.productName = productName;
  29. }
  30. public String getProductPrice() {
  31. return productPrice;
  32. }
  33. public void setProductPrice(String productPrice) {
  34. this.productPrice = productPrice;
  35. }
  36. public Integer getProductQuntity() {
  37. return productQuntity;
  38. }
  39. public void setProductQuntity(Integer productQuntity) {
  40. this.productQuntity = productQuntity;
  41. }
  42. public Integer getUserId() {
  43. return userId;
  44. }
  45. public void setUserId(Integer userId) {
  46. this.userId = userId;
  47. }
  48. public String getUserName() {
  49. return UserName;
  50. }
  51. public void setUserName(String userName) {
  52. UserName = userName;
  53. }
  54. public String getProductDescription() {
  55. return productDescription;
  56. }
  57. public void setProductDescription(String productDescription) {
  58. this.productDescription = productDescription;
  59. }
  60. @Override
  61. public String toString() {
  62. return "ProductDetail [productId=" + productId + ", productCode=" + productCode + ", productName=" + productName
  63. + ", productPrice=" + productPrice + ", productQuntity=" + productQuntity + ", productDescription="
  64. + productDescription + ", userId=" + userId + ", UserName=" + UserName + "]";
  65. }
  66. }
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75. package marketmanagement.model;
  76.  
  77. public class PurchaseProduct {
  78. //purchaseId, productCode, productName, productPrice, productQuntity, total, productId, userName
  79. private Integer purchaseId;
  80. private String productCode;
  81. private String productName;
  82. private Integer productPrice;
  83. private Integer productQuntity;
  84. private Integer total;
  85. private Integer productId;
  86. private String seller;
  87. private Integer userId;
  88. private String UserName;
  89.  
  90. public Integer getPurchaseId() {
  91. return purchaseId;
  92. }
  93. public void setPurchaseId(Integer purchaseId) {
  94. this.purchaseId = purchaseId;
  95. }
  96. public String getProductCode() {
  97. return productCode;
  98. }
  99. public void setProductCode(String productCode) {
  100. this.productCode = productCode;
  101. }
  102. public String getProductName() {
  103. return productName;
  104. }
  105. public void setProductName(String productName) {
  106. this.productName = productName;
  107. }
  108. public Integer getProductPrice() {
  109. return productPrice;
  110. }
  111. public void setProductPrice(Integer productPrice) {
  112. this.productPrice = productPrice;
  113. }
  114. public Integer getProductQuntity() {
  115. return productQuntity;
  116. }
  117. public void setProductQuntity(Integer productQuntity) {
  118. this.productQuntity = productQuntity;
  119. }
  120. public Integer getTotal() {
  121. return total;
  122. }
  123. public void setTotal(Integer total) {
  124. this.total = total;
  125. }
  126. public Integer getProductId() {
  127. return productId;
  128. }
  129. public void setProductId(Integer productId) {
  130. this.productId = productId;
  131. }
  132. public Integer getUserId() {
  133. return userId;
  134. }
  135. public void setUserId(Integer userId) {
  136. this.userId = userId;
  137. }
  138. public String getUserName() {
  139. return UserName;
  140. }
  141. public void setUserName(String userName) {
  142. UserName = userName;
  143. }
  144. public String getSeller() {
  145. return seller;
  146. }
  147. public void setSeller(String seller) {
  148. this.seller = seller;
  149. }
  150.  
  151.  
  152. }
  153.  
  154.  
  155.  
  156.  
  157. package marketmanagement.model;
  158.  
  159. public class UserManagement {
  160.  
  161. private Integer userId;
  162. private String userName;
  163. private String email;
  164. private String password;
  165. private String phoneNo;
  166. private String dateOfBirth;
  167. private String balance;
  168. private Integer roleId;
  169. private String roleName;
  170.  
  171. public Integer getUserId() {
  172. return userId;
  173. }
  174. public void setUserId(Integer userId) {
  175. this.userId = userId;
  176. }
  177. public String getUserName() {
  178. return userName;
  179. }
  180. public void setUserName(String userName) {
  181. this.userName = userName;
  182. }
  183. public String getEmail() {
  184. return email;
  185. }
  186. public void setEmail(String email) {
  187. this.email = email;
  188. }
  189. public String getPassword() {
  190. return password;
  191. }
  192. public void setPassword(String password) {
  193. this.password = password;
  194. }
  195. public String getPhoneNo() {
  196. return phoneNo;
  197. }
  198. public void setPhoneNo(String phoneNo) {
  199. this.phoneNo = phoneNo;
  200. }
  201. public String getDateOfBirth() {
  202. return dateOfBirth;
  203. }
  204. public void setDateOfBirth(String dateOfBirth) {
  205. this.dateOfBirth = dateOfBirth;
  206. }
  207. public String getBalance() {
  208. return balance;
  209. }
  210. public void setBalance(String balance) {
  211. this.balance = balance;
  212. }
  213. public Integer getRoleId() {
  214. return roleId;
  215. }
  216. public void setRoleId(Integer roleId) {
  217. this.roleId = roleId;
  218. }
  219. public String getRoleName() {
  220. return roleName;
  221. }
  222. public void setRoleName(String roleName) {
  223. this.roleName = roleName;
  224. }
  225.  
  226.  
  227.  
  228.  
  229. }
  230.  
  231.  
  232.  
  233.  
  234. package marketmanagement.model;
  235.  
  236. public class RoleMaster {
  237.  
  238. private Integer roleId;
  239. private String roleName;
  240. private String roleDescription;
  241.  
  242. public Integer getRoleId() {
  243. return roleId;
  244. }
  245. public void setRoleId(Integer roleId) {
  246. this.roleId = roleId;
  247. }
  248. public String getRoleName() {
  249. return roleName;
  250. }
  251. public void setRoleName(String roleName) {
  252. this.roleName = roleName;
  253. }
  254. public String getRoleDescription() {
  255. return roleDescription;
  256. }
  257. public void setRoleDescription(String roleDescription) {
  258. this.roleDescription = roleDescription;
  259. }
  260. @Override
  261. public String toString() {
  262. // TODO Auto-generated method stub
  263. return "RoleMaster [roleId="+ roleId +",roleName="+ roleName +",roleDescription="+ roleDescription +"]";
  264. }
  265.  
  266. }
Add Comment
Please, Sign In to add comment