Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   ExportSetting other = (ExportSetting) obj;
   if (categoryNameToExport == null) {
     if (other.categoryNameToExport != null) return false;
   } else if (!categoryNameToExport.equals(other.categoryNameToExport)) return false;
   if (ddlOutput == null) {
     if (other.ddlOutput != null) return false;
   } else if (!ddlOutput.equals(other.ddlOutput)) return false;
   if (ddlTarget == null) {
     if (other.ddlTarget != null) return false;
   } else if (!ddlTarget.equals(other.ddlTarget)) return false;
   if (excelOutput == null) {
     if (other.excelOutput != null) return false;
   } else if (!excelOutput.equals(other.excelOutput)) return false;
   if (excelTemplate == null) {
     if (other.excelTemplate != null) return false;
   } else if (!excelTemplate.equals(other.excelTemplate)) return false;
   if (exportJavaSetting == null) {
     if (other.exportJavaSetting != null) return false;
   } else if (!exportJavaSetting.equals(other.exportJavaSetting)) return false;
   if (exportTestDataSetting == null) {
     if (other.exportTestDataSetting != null) return false;
   } else if (!exportTestDataSetting.equals(other.exportTestDataSetting)) return false;
   if (imageOutput == null) {
     if (other.imageOutput != null) return false;
   } else if (!imageOutput.equals(other.imageOutput)) return false;
   if (openAfterSaved != other.openAfterSaved) return false;
   if (putERDiagramOnExcel != other.putERDiagramOnExcel) return false;
   if (useLogicalNameAsSheet != other.useLogicalNameAsSheet) return false;
   return true;
 }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   int h = 0;
   h = h * 37 + (categoryNameToExport == null ? 0 : categoryNameToExport.hashCode());
   h = h * 37 + (ddlOutput == null ? 0 : ddlOutput.hashCode());
   h = h * 37 + (ddlTarget == null ? 0 : ddlTarget.hashCode());
   h = h * 37 + (excelOutput == null ? 0 : excelOutput.hashCode());
   h = h * 37 + (excelTemplate == null ? 0 : excelTemplate.hashCode());
   h = h * 37 + (exportJavaSetting == null ? 0 : exportJavaSetting.hashCode());
   h = h * 37 + (exportTestDataSetting == null ? 0 : exportTestDataSetting.hashCode());
   h = h * 37 + (imageOutput == null ? 0 : imageOutput.hashCode());
   h = h * 37 + (openAfterSaved ? 1231 : 1237);
   h = h * 37 + (putERDiagramOnExcel ? 1231 : 1237);
   return h * 37 + (useLogicalNameAsSheet ? 1231 : 1237);
 }