|
@ -0,0 +1,65 @@ |
|
|
|
|
|
package com.storeroom.modules.dictionary.domain; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.storeroom.base.BaseEntity; |
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
|
|
import lombok.Getter; |
|
|
|
|
|
import lombok.Setter; |
|
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column; |
|
|
|
|
|
import javax.persistence.Entity; |
|
|
|
|
|
import javax.persistence.Id; |
|
|
|
|
|
import javax.persistence.Table; |
|
|
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
@Entity |
|
|
|
|
|
@Getter |
|
|
|
|
|
@Setter |
|
|
|
|
|
@Table(name = "archives_no_setting") |
|
|
|
|
|
public class ArchivesNoSetting extends BaseEntity implements Serializable { |
|
|
|
|
|
|
|
|
|
|
|
@Id |
|
|
|
|
|
@Column(name = "id") |
|
|
|
|
|
@NotNull(groups = Update.class) |
|
|
|
|
|
@ApiModelProperty(value = "ID", hidden = true) |
|
|
|
|
|
private String id; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "列名") |
|
|
|
|
|
@Column(name = "filed_cn_name") |
|
|
|
|
|
private String filedCnName; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "字段名") |
|
|
|
|
|
@Column(name = "filed_name") |
|
|
|
|
|
private String filedName; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "连接符") |
|
|
|
|
|
@Column(name = "connector") |
|
|
|
|
|
private String connector; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "") |
|
|
|
|
|
@Column(name = "sequence") |
|
|
|
|
|
private Integer sequence; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "门类id") |
|
|
|
|
|
@Column(name = "category_id") |
|
|
|
|
|
private String categoryId; |
|
|
|
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "字段字典表id") |
|
|
|
|
|
@Column(name = "dictionary_id") |
|
|
|
|
|
private String dictionaryId; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public boolean equals(Object o) { |
|
|
|
|
|
if (this == o) return true; |
|
|
|
|
|
if (o == null || getClass() != o.getClass()) return false; |
|
|
|
|
|
ArchivesNoSetting that = (ArchivesNoSetting) o; |
|
|
|
|
|
return Objects.equals(id, that.id) && Objects.equals(filedCnName, that.filedCnName) && Objects.equals(filedName, that.filedName) && Objects.equals(connector, that.connector) && Objects.equals(sequence, that.sequence) && Objects.equals(categoryId, that.categoryId) && Objects.equals(dictionaryId, that.dictionaryId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public int hashCode() { |
|
|
|
|
|
return Objects.hash(id, filedCnName, filedName, connector, sequence, categoryId, dictionaryId); |
|
|
|
|
|
} |
|
|
|
|
|
} |