diff --git a/code/java/天气灾害预警/disaster_warning.iws b/code/java/天气灾害预警/disaster_warning.iws index 9ac8e35..a7a2b2b 100644 --- a/code/java/天气灾害预警/disaster_warning.iws +++ b/code/java/天气灾害预警/disaster_warning.iws @@ -5,10 +5,8 @@ - - + - diff --git a/code/java/天气灾害预警/src/main/java/com/cpic/xim/config/db/DBTable.java b/code/java/天气灾害预警/src/main/java/com/cpic/xim/config/db/DBTable.java new file mode 100644 index 0000000..9843d27 --- /dev/null +++ b/code/java/天气灾害预警/src/main/java/com/cpic/xim/config/db/DBTable.java @@ -0,0 +1,52 @@ +package com.cpic.xim.config.db; + +import java.util.Objects; + +public class DBTable +{ + public DBTable() {} + + public String getTableName() + { + return tableName; + } + + public void setTableName( String tableName ) + { + this.tableName = tableName; + } + + public String getTableDescription() + { + return tableDescription; + } + + public void setTableDescription( String tableDescription ) + { + this.tableDescription = tableDescription; + } + + @Override + public boolean equals( Object o ) + { + if ( this == o ) + { + return true; + } + if ( !( o instanceof DBTable ) ) + { + return false; + } + DBTable dbTable = (DBTable) o; + return tableName.equals( dbTable.tableName ) && tableDescription.equals( dbTable.tableDescription ); + } + + @Override + public int hashCode() + { + return Objects.hash( tableName, tableDescription ); + } + + private String tableName; + private String tableDescription; +}