package com.qianwen.core.sequence.properties; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @ConfigurationProperties(prefix = "blade.xsequence.db") @Component public class SequenceDbProperties extends BaseSequenceProperties { private String tableName = "blade_sequence"; private int retryTimes = 1; public void setTableName(final String tableName) { this.tableName = tableName; } public void setRetryTimes(final int retryTimes) { this.retryTimes = retryTimes; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof SequenceDbProperties) { SequenceDbProperties other = (SequenceDbProperties) o; if (other.canEqual(this) && getRetryTimes() == other.getRetryTimes()) { Object this$tableName = getTableName(); Object other$tableName = other.getTableName(); return this$tableName == null ? other$tableName == null : this$tableName.equals(other$tableName); } return false; } return false; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties protected boolean canEqual(final Object other) { return other instanceof SequenceDbProperties; } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public int hashCode() { int result = (1 * 59) + getRetryTimes(); Object $tableName = getTableName(); return (result * 59) + ($tableName == null ? 43 : $tableName.hashCode()); } @Override // com.qianwen.core.sequence.properties.BaseSequenceProperties public String toString() { return "SequenceDbProperties(tableName=" + getTableName() + ", retryTimes=" + getRetryTimes() + ")"; } public String getTableName() { return this.tableName; } public int getRetryTimes() { return this.retryTimes; } }