Guest User

Untitled

a guest
Feb 14th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.49 KB | None | 0 0
  1. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  4. version="2.0">
  5. <persistence-unit name="vy">
  6. <class>com.donhuvy.entity.SysReportLayoutUserApply</class>
  7. <class>com.donhuvy.entity.SysReportList</class>
  8. <properties>
  9. <property name="hibernate.connection.url" value="jdbc:oracle:thin:@localhost:1521:XE"/>
  10. <property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver"/>
  11. </properties>
  12. </persistence-unit>
  13. </persistence>
  14.  
  15. package com.donhuvy.entity;
  16.  
  17. import javax.persistence.Basic;
  18. import javax.persistence.Column;
  19. import javax.persistence.Entity;
  20. import javax.persistence.Id;
  21. import javax.persistence.JoinColumn;
  22. import javax.persistence.ManyToOne;
  23. import javax.persistence.Table;
  24. import java.util.Objects;
  25.  
  26. @Entity
  27. @Table(name = "SYS_REPORT_LAYOUT_USER_APPLY", schema = "ACCOUNTING", catalog = "")
  28. public class SysReportLayoutUserApply {
  29.  
  30. private long reportId;
  31. private Long userId;
  32. private SysReportLayoutConfig sysReportLayoutConfigByLayoutId;
  33.  
  34. @Id
  35. @Column(name = "REPORT_ID", nullable = false, precision = 0)
  36. public long getReportId() {
  37. return reportId;
  38. }
  39.  
  40. public void setReportId(long reportId) {
  41. this.reportId = reportId;
  42. }
  43.  
  44. @Basic
  45. @Column(name = "USER_ID", nullable = true, precision = 0)
  46. public Long getUserId() {
  47. return userId;
  48. }
  49.  
  50. public void setUserId(Long userId) {
  51. this.userId = userId;
  52. }
  53.  
  54. @Override
  55. public boolean equals(Object o) {
  56. if (this == o) return true;
  57. if (o == null || getClass() != o.getClass()) return false;
  58. SysReportLayoutUserApply that = (SysReportLayoutUserApply) o;
  59. return reportId == that.reportId &&
  60. Objects.equals(userId, that.userId);
  61. }
  62.  
  63. @Override
  64. public int hashCode() {
  65.  
  66. return Objects.hash(reportId, userId);
  67. }
  68.  
  69. @ManyToOne
  70. @JoinColumn(name = "LAYOUT_ID", referencedColumnName = "LAYOUT_ID")
  71. public SysReportLayoutConfig getSysReportLayoutConfigByLayoutId() {
  72. return sysReportLayoutConfigByLayoutId;
  73. }
  74.  
  75. public void setSysReportLayoutConfigByLayoutId(SysReportLayoutConfig sysReportLayoutConfigByLayoutId) {
  76. this.sysReportLayoutConfigByLayoutId = sysReportLayoutConfigByLayoutId;
  77. }
  78. }
  79.  
  80. package com.donhuvy.entity;
  81.  
  82. import javax.persistence.Basic;
  83. import javax.persistence.Column;
  84. import javax.persistence.Entity;
  85. import javax.persistence.Id;
  86. import javax.persistence.JoinColumn;
  87. import javax.persistence.ManyToOne;
  88. import javax.persistence.OneToOne;
  89. import javax.persistence.Table;
  90. import java.sql.Timestamp;
  91. import java.util.Objects;
  92.  
  93. @Entity
  94. @Table(name = "SYS_REPORT_LIST", schema = "ACCOUNTING", catalog = "")
  95. public class SysReportList {
  96.  
  97.  
  98. private long reportId;
  99. private String reportName;
  100. private String reportName48;
  101. private String reportFile;
  102. private String functionReportName;
  103. private String procedureName;
  104. private String parameterFormName;
  105. private String parameterUserControl;
  106. private String reportViewer;
  107. private String refTypeList;
  108. private Byte sortOrder;
  109. private byte accountingSystem;
  110. private Long branchId;
  111. private String description;
  112. private String formNo;
  113. private String formNo48;
  114. private Timestamp lastViewDate;
  115. private String tableName;
  116. private Boolean isBeta;
  117. private boolean isInvoice;
  118. private boolean isSystem;
  119. private boolean isShow;
  120. private Boolean isNotPrintSummary;
  121. private Byte invTypeId;
  122. private Boolean isPrintLineNumber;
  123. private byte reportType;
  124. private Byte reportStyle;
  125. private String parentId;
  126. private String reportDetailName;
  127. private String linkToReportDetail;
  128. private Byte invMethod;
  129. private boolean isParent;
  130. private Byte refTypeCategory;
  131. private Timestamp createDate;
  132. private String reportTitle;
  133. private String listParameter;
  134. private String reportNameEnglish;
  135. private String reportNameEnglish48;
  136. private Byte showTotalPageNumber;
  137. private String tableNameExport;
  138. private String reportName133;
  139. private String reportNameEnglish133;
  140. private String formNo133;
  141. private SysReportLayoutUserApply sysReportLayoutUserApplyByReportId;
  142. private SysReportGroup sysReportGroupByGroupId;
  143.  
  144. @Id
  145. @Column(name = "REPORT_ID", nullable = false, precision = 0)
  146. public long getReportId() {
  147. return reportId;
  148. }
  149.  
  150. public void setReportId(long reportId) {
  151. this.reportId = reportId;
  152. }
  153.  
  154. @Basic
  155. @Column(name = "REPORT_NAME", nullable = true, length = 256)
  156. public String getReportName() {
  157. return reportName;
  158. }
  159.  
  160. public void setReportName(String reportName) {
  161. this.reportName = reportName;
  162. }
  163.  
  164. @Basic
  165. @Column(name = "REPORT_NAME_48", nullable = true, length = 256)
  166. public String getReportName48() {
  167. return reportName48;
  168. }
  169.  
  170. public void setReportName48(String reportName48) {
  171. this.reportName48 = reportName48;
  172. }
  173.  
  174. @Basic
  175. @Column(name = "REPORT_FILE", nullable = true, length = 100)
  176. public String getReportFile() {
  177. return reportFile;
  178. }
  179.  
  180. public void setReportFile(String reportFile) {
  181. this.reportFile = reportFile;
  182. }
  183.  
  184. @Basic
  185. @Column(name = "FUNCTION_REPORT_NAME", nullable = true, length = 128)
  186. public String getFunctionReportName() {
  187. return functionReportName;
  188. }
  189.  
  190. public void setFunctionReportName(String functionReportName) {
  191. this.functionReportName = functionReportName;
  192. }
  193.  
  194. @Basic
  195. @Column(name = "PROCEDURE_NAME", nullable = true, length = 128)
  196. public String getProcedureName() {
  197. return procedureName;
  198. }
  199.  
  200. public void setProcedureName(String procedureName) {
  201. this.procedureName = procedureName;
  202. }
  203.  
  204. @Basic
  205. @Column(name = "PARAMETER_FORM_NAME", nullable = true, length = 128)
  206. public String getParameterFormName() {
  207. return parameterFormName;
  208. }
  209.  
  210. public void setParameterFormName(String parameterFormName) {
  211. this.parameterFormName = parameterFormName;
  212. }
  213.  
  214. @Basic
  215. @Column(name = "PARAMETER_USER_CONTROL", nullable = true, length = 128)
  216. public String getParameterUserControl() {
  217. return parameterUserControl;
  218. }
  219.  
  220. public void setParameterUserControl(String parameterUserControl) {
  221. this.parameterUserControl = parameterUserControl;
  222. }
  223.  
  224. @Basic
  225. @Column(name = "REPORT_VIEWER", nullable = true, length = 128)
  226. public String getReportViewer() {
  227. return reportViewer;
  228. }
  229.  
  230. public void setReportViewer(String reportViewer) {
  231. this.reportViewer = reportViewer;
  232. }
  233.  
  234. @Basic
  235. @Column(name = "REF_TYPE_LIST", nullable = false, length = 700)
  236. public String getRefTypeList() {
  237. return refTypeList;
  238. }
  239.  
  240. public void setRefTypeList(String refTypeList) {
  241. this.refTypeList = refTypeList;
  242. }
  243.  
  244. @Basic
  245. @Column(name = "SORT_ORDER", nullable = true, precision = 0)
  246. public Byte getSortOrder() {
  247. return sortOrder;
  248. }
  249.  
  250. public void setSortOrder(Byte sortOrder) {
  251. this.sortOrder = sortOrder;
  252. }
  253.  
  254. @Basic
  255. @Column(name = "ACCOUNTING_SYSTEM", nullable = false, precision = 0)
  256. public byte getAccountingSystem() {
  257. return accountingSystem;
  258. }
  259.  
  260. public void setAccountingSystem(byte accountingSystem) {
  261. this.accountingSystem = accountingSystem;
  262. }
  263.  
  264. @Basic
  265. @Column(name = "BRANCH_ID", nullable = true, precision = 0)
  266. public Long getBranchId() {
  267. return branchId;
  268. }
  269.  
  270. public void setBranchId(Long branchId) {
  271. this.branchId = branchId;
  272. }
  273.  
  274. @Basic
  275. @Column(name = "DESCRIPTION", nullable = true, length = 256)
  276. public String getDescription() {
  277. return description;
  278. }
  279.  
  280. public void setDescription(String description) {
  281. this.description = description;
  282. }
  283.  
  284. @Basic
  285. @Column(name = "FORM_NO", nullable = true, length = 128)
  286. public String getFormNo() {
  287. return formNo;
  288. }
  289.  
  290. public void setFormNo(String formNo) {
  291. this.formNo = formNo;
  292. }
  293.  
  294. @Basic
  295. @Column(name = "FORM_NO_48", nullable = true, length = 128)
  296. public String getFormNo48() {
  297. return formNo48;
  298. }
  299.  
  300. public void setFormNo48(String formNo48) {
  301. this.formNo48 = formNo48;
  302. }
  303.  
  304. @Basic
  305. @Column(name = "LAST_VIEW_DATE", nullable = true)
  306. public Timestamp getLastViewDate() {
  307. return lastViewDate;
  308. }
  309.  
  310. public void setLastViewDate(Timestamp lastViewDate) {
  311. this.lastViewDate = lastViewDate;
  312. }
  313.  
  314. @Basic
  315. @Column(name = "TABLE_NAME", nullable = true, length = 1024)
  316. public String getTableName() {
  317. return tableName;
  318. }
  319.  
  320. public void setTableName(String tableName) {
  321. this.tableName = tableName;
  322. }
  323.  
  324. @Basic
  325. @Column(name = "IS_BETA", nullable = true, precision = 0)
  326. public Boolean getBeta() {
  327. return isBeta;
  328. }
  329.  
  330. public void setBeta(Boolean beta) {
  331. isBeta = beta;
  332. }
  333.  
  334. @Basic
  335. @Column(name = "IS_INVOICE", nullable = false, precision = 0)
  336. public boolean isInvoice() {
  337. return isInvoice;
  338. }
  339.  
  340. public void setInvoice(boolean invoice) {
  341. isInvoice = invoice;
  342. }
  343.  
  344. @Basic
  345. @Column(name = "IS_SYSTEM", nullable = false, precision = 0)
  346. public boolean isSystem() {
  347. return isSystem;
  348. }
  349.  
  350. public void setSystem(boolean system) {
  351. isSystem = system;
  352. }
  353.  
  354. @Basic
  355. @Column(name = "IS_SHOW", nullable = false, precision = 0)
  356. public boolean isShow() {
  357. return isShow;
  358. }
  359.  
  360. public void setShow(boolean show) {
  361. isShow = show;
  362. }
  363.  
  364. @Basic
  365. @Column(name = "IS_NOT_PRINT_SUMMARY", nullable = true, precision = 0)
  366. public Boolean getNotPrintSummary() {
  367. return isNotPrintSummary;
  368. }
  369.  
  370. public void setNotPrintSummary(Boolean notPrintSummary) {
  371. isNotPrintSummary = notPrintSummary;
  372. }
  373.  
  374. @Basic
  375. @Column(name = "INV_TYPE_ID", nullable = true, precision = 0)
  376. public Byte getInvTypeId() {
  377. return invTypeId;
  378. }
  379.  
  380. public void setInvTypeId(Byte invTypeId) {
  381. this.invTypeId = invTypeId;
  382. }
  383.  
  384. @Basic
  385. @Column(name = "IS_PRINT_LINE_NUMBER", nullable = true, precision = 0)
  386. public Boolean getPrintLineNumber() {
  387. return isPrintLineNumber;
  388. }
  389.  
  390. public void setPrintLineNumber(Boolean printLineNumber) {
  391. isPrintLineNumber = printLineNumber;
  392. }
  393.  
  394. @Basic
  395. @Column(name = "REPORT_TYPE", nullable = false, precision = 0)
  396. public byte getReportType() {
  397. return reportType;
  398. }
  399.  
  400. public void setReportType(byte reportType) {
  401. this.reportType = reportType;
  402. }
  403.  
  404. @Basic
  405. @Column(name = "REPORT_STYLE", nullable = true, precision = 0)
  406. public Byte getReportStyle() {
  407. return reportStyle;
  408. }
  409.  
  410. public void setReportStyle(Byte reportStyle) {
  411. this.reportStyle = reportStyle;
  412. }
  413.  
  414. @Basic
  415. @Column(name = "PARENT_ID", nullable = true, length = 100)
  416. public String getParentId() {
  417. return parentId;
  418. }
  419.  
  420. public void setParentId(String parentId) {
  421. this.parentId = parentId;
  422. }
  423.  
  424. @Basic
  425. @Column(name = "REPORT_DETAIL_NAME", nullable = true, length = 256)
  426. public String getReportDetailName() {
  427. return reportDetailName;
  428. }
  429.  
  430. public void setReportDetailName(String reportDetailName) {
  431. this.reportDetailName = reportDetailName;
  432. }
  433.  
  434. @Basic
  435. @Column(name = "LINK_TO_REPORT_DETAIL", nullable = true, length = 1024)
  436. public String getLinkToReportDetail() {
  437. return linkToReportDetail;
  438. }
  439.  
  440. public void setLinkToReportDetail(String linkToReportDetail) {
  441. this.linkToReportDetail = linkToReportDetail;
  442. }
  443.  
  444. @Basic
  445. @Column(name = "INV_METHOD", nullable = true, precision = 0)
  446. public Byte getInvMethod() {
  447. return invMethod;
  448. }
  449.  
  450. public void setInvMethod(Byte invMethod) {
  451. this.invMethod = invMethod;
  452. }
  453.  
  454. @Basic
  455. @Column(name = "IS_PARENT", nullable = false, precision = 0)
  456. public boolean isParent() {
  457. return isParent;
  458. }
  459.  
  460. public void setParent(boolean parent) {
  461. isParent = parent;
  462. }
  463.  
  464. @Basic
  465. @Column(name = "REF_TYPE_CATEGORY", nullable = true, precision = 0)
  466. public Byte getRefTypeCategory() {
  467. return refTypeCategory;
  468. }
  469.  
  470. public void setRefTypeCategory(Byte refTypeCategory) {
  471. this.refTypeCategory = refTypeCategory;
  472. }
  473.  
  474. @Basic
  475. @Column(name = "CREATE_DATE", nullable = true)
  476. public Timestamp getCreateDate() {
  477. return createDate;
  478. }
  479.  
  480. public void setCreateDate(Timestamp createDate) {
  481. this.createDate = createDate;
  482. }
  483.  
  484. @Basic
  485. @Column(name = "REPORT_TITLE", nullable = true, length = 256)
  486. public String getReportTitle() {
  487. return reportTitle;
  488. }
  489.  
  490. public void setReportTitle(String reportTitle) {
  491. this.reportTitle = reportTitle;
  492. }
  493.  
  494. @Basic
  495. @Column(name = "LIST_PARAMETER", nullable = true, length = 1024)
  496. public String getListParameter() {
  497. return listParameter;
  498. }
  499.  
  500. public void setListParameter(String listParameter) {
  501. this.listParameter = listParameter;
  502. }
  503.  
  504. @Basic
  505. @Column(name = "REPORT_NAME_ENGLISH", nullable = true, length = 256)
  506. public String getReportNameEnglish() {
  507. return reportNameEnglish;
  508. }
  509.  
  510. public void setReportNameEnglish(String reportNameEnglish) {
  511. this.reportNameEnglish = reportNameEnglish;
  512. }
  513.  
  514. @Basic
  515. @Column(name = "REPORT_NAME_ENGLISH_48", nullable = true, length = 256)
  516. public String getReportNameEnglish48() {
  517. return reportNameEnglish48;
  518. }
  519.  
  520. public void setReportNameEnglish48(String reportNameEnglish48) {
  521. this.reportNameEnglish48 = reportNameEnglish48;
  522. }
  523.  
  524. @Basic
  525. @Column(name = "SHOW_TOTAL_PAGE_NUMBER", nullable = true, precision = 0)
  526. public Byte getShowTotalPageNumber() {
  527. return showTotalPageNumber;
  528. }
  529.  
  530. public void setShowTotalPageNumber(Byte showTotalPageNumber) {
  531. this.showTotalPageNumber = showTotalPageNumber;
  532. }
  533.  
  534. @Basic
  535. @Column(name = "TABLE_NAME_EXPORT", nullable = true, length = 20)
  536. public String getTableNameExport() {
  537. return tableNameExport;
  538. }
  539.  
  540. public void setTableNameExport(String tableNameExport) {
  541. this.tableNameExport = tableNameExport;
  542. }
  543.  
  544. @Basic
  545. @Column(name = "REPORT_NAME_133", nullable = true, length = 256)
  546. public String getReportName133() {
  547. return reportName133;
  548. }
  549.  
  550. public void setReportName133(String reportName133) {
  551. this.reportName133 = reportName133;
  552. }
  553.  
  554. @Basic
  555. @Column(name = "REPORT_NAME_ENGLISH_133", nullable = true, length = 256)
  556. public String getReportNameEnglish133() {
  557. return reportNameEnglish133;
  558. }
  559.  
  560. public void setReportNameEnglish133(String reportNameEnglish133) {
  561. this.reportNameEnglish133 = reportNameEnglish133;
  562. }
  563.  
  564. @Basic
  565. @Column(name = "FORM_NO_133", nullable = true, length = 128)
  566. public String getFormNo133() {
  567. return formNo133;
  568. }
  569.  
  570. public void setFormNo133(String formNo133) {
  571. this.formNo133 = formNo133;
  572. }
  573.  
  574. @Override
  575. public boolean equals(Object o) {
  576. if (this == o) return true;
  577. if (o == null || getClass() != o.getClass()) return false;
  578. SysReportList that = (SysReportList) o;
  579. return reportId == that.reportId &&
  580. accountingSystem == that.accountingSystem &&
  581. isInvoice == that.isInvoice &&
  582. isSystem == that.isSystem &&
  583. isShow == that.isShow &&
  584. reportType == that.reportType &&
  585. isParent == that.isParent &&
  586. Objects.equals(reportName, that.reportName) &&
  587. Objects.equals(reportName48, that.reportName48) &&
  588. Objects.equals(reportFile, that.reportFile) &&
  589. Objects.equals(functionReportName, that.functionReportName) &&
  590. Objects.equals(procedureName, that.procedureName) &&
  591. Objects.equals(parameterFormName, that.parameterFormName) &&
  592. Objects.equals(parameterUserControl, that.parameterUserControl) &&
  593. Objects.equals(reportViewer, that.reportViewer) &&
  594. Objects.equals(refTypeList, that.refTypeList) &&
  595. Objects.equals(sortOrder, that.sortOrder) &&
  596. Objects.equals(branchId, that.branchId) &&
  597. Objects.equals(description, that.description) &&
  598. Objects.equals(formNo, that.formNo) &&
  599. Objects.equals(formNo48, that.formNo48) &&
  600. Objects.equals(lastViewDate, that.lastViewDate) &&
  601. Objects.equals(tableName, that.tableName) &&
  602. Objects.equals(isBeta, that.isBeta) &&
  603. Objects.equals(isNotPrintSummary, that.isNotPrintSummary) &&
  604. Objects.equals(invTypeId, that.invTypeId) &&
  605. Objects.equals(isPrintLineNumber, that.isPrintLineNumber) &&
  606. Objects.equals(reportStyle, that.reportStyle) &&
  607. Objects.equals(parentId, that.parentId) &&
  608. Objects.equals(reportDetailName, that.reportDetailName) &&
  609. Objects.equals(linkToReportDetail, that.linkToReportDetail) &&
  610. Objects.equals(invMethod, that.invMethod) &&
  611. Objects.equals(refTypeCategory, that.refTypeCategory) &&
  612. Objects.equals(createDate, that.createDate) &&
  613. Objects.equals(reportTitle, that.reportTitle) &&
  614. Objects.equals(listParameter, that.listParameter) &&
  615. Objects.equals(reportNameEnglish, that.reportNameEnglish) &&
  616. Objects.equals(reportNameEnglish48, that.reportNameEnglish48) &&
  617. Objects.equals(showTotalPageNumber, that.showTotalPageNumber) &&
  618. Objects.equals(tableNameExport, that.tableNameExport) &&
  619. Objects.equals(reportName133, that.reportName133) &&
  620. Objects.equals(reportNameEnglish133, that.reportNameEnglish133) &&
  621. Objects.equals(formNo133, that.formNo133);
  622. }
  623.  
  624. @Override
  625. public int hashCode() {
  626.  
  627. return Objects.hash(reportId, reportName, reportName48, reportFile, functionReportName, procedureName, parameterFormName, parameterUserControl, reportViewer, refTypeList, sortOrder, accountingSystem, branchId, description, formNo, formNo48, lastViewDate, tableName, isBeta, isInvoice, isSystem, isShow, isNotPrintSummary, invTypeId, isPrintLineNumber, reportType, reportStyle, parentId, reportDetailName, linkToReportDetail, invMethod, isParent, refTypeCategory, createDate, reportTitle, listParameter, reportNameEnglish, reportNameEnglish48, showTotalPageNumber, tableNameExport, reportName133, reportNameEnglish133, formNo133);
  628. }
  629.  
  630. @OneToOne(mappedBy = "sysReportListByReportId")
  631. public SysReportLayoutUserApply getSysReportLayoutUserApplyByReportId() {
  632. return sysReportLayoutUserApplyByReportId;
  633. }
  634.  
  635. public void setSysReportLayoutUserApplyByReportId(SysReportLayoutUserApply sysReportLayoutUserApplyByReportId) {
  636. this.sysReportLayoutUserApplyByReportId = sysReportLayoutUserApplyByReportId;
  637. }
  638.  
  639. @ManyToOne
  640. @JoinColumn(name = "GROUP_ID", referencedColumnName = "GROUP_ID")
  641. public SysReportGroup getSysReportGroupByGroupId() {
  642. return sysReportGroupByGroupId;
  643. }
  644.  
  645. public void setSysReportGroupByGroupId(SysReportGroup sysReportGroupByGroupId) {
  646. this.sysReportGroupByGroupId = sysReportGroupByGroupId;
  647. }
  648. }
Add Comment
Please, Sign In to add comment