|
|
@ -12,7 +12,6 @@ import lombok.Setter; |
|
|
|
import javax.persistence.*; |
|
|
|
import javax.validation.constraints.NotNull; |
|
|
|
import java.io.Serializable; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Objects; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
@ -40,9 +39,8 @@ public class DisplayConfig extends BaseEntity implements Serializable { |
|
|
|
private Storeroom storeroom; |
|
|
|
|
|
|
|
|
|
|
|
@OneToMany(cascade = CascadeType.ALL,fetch=FetchType.EAGER) |
|
|
|
@JoinColumn(name = "display_config_id") |
|
|
|
private List<DeviceSpecParam> deviceSpecParams; |
|
|
|
@OneToMany(mappedBy = "displayConfigId") |
|
|
|
private Set<DeviceSpecParam> deviceSpecParams; |
|
|
|
|
|
|
|
|
|
|
|
@Column(name = "div_position") |
|
|
@ -58,17 +56,16 @@ public class DisplayConfig extends BaseEntity implements Serializable { |
|
|
|
@ApiModelProperty(name = "绑定状态") |
|
|
|
private Boolean bindState; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public boolean equals(Object o) { |
|
|
|
if (this == o) return true; |
|
|
|
if (o == null || getClass() != o.getClass()) return false; |
|
|
|
DisplayConfig that = (DisplayConfig) o; |
|
|
|
return Objects.equals(id, that.id) && Objects.equals(deviceInfo, that.deviceInfo) && Objects.equals(divPosition, that.divPosition) && Objects.equals(isDisplay, that.isDisplay) && Objects.equals(bindState, that.bindState); |
|
|
|
return Objects.equals(id, that.id) && Objects.equals(deviceInfo, that.deviceInfo) && Objects.equals(storeroom, that.storeroom) && Objects.equals(deviceSpecParams, that.deviceSpecParams) && Objects.equals(divPosition, that.divPosition) && Objects.equals(isDisplay, that.isDisplay) && Objects.equals(bindState, that.bindState); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int hashCode() { |
|
|
|
return Objects.hash(id, deviceInfo, divPosition, isDisplay, bindState); |
|
|
|
return Objects.hash(id, deviceInfo, storeroom, deviceSpecParams, divPosition, isDisplay, bindState); |
|
|
|
} |
|
|
|
} |