重构WebSocket服务名称从WebSocketService改为WebSocketClientService,并实现Serializable接口 添加WebSocket常量定义和消息处理实现 优化实体类equals和hashCode方法 修复控制器路径和日志配置 添加查询服务和任务接口方法
45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
package com.ecep.contract.model;
|
|
|
|
import com.ecep.contract.util.HibernateProxyUtils;
|
|
import jakarta.persistence.*;
|
|
import lombok.*;
|
|
import org.hibernate.proxy.HibernateProxy;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Objects;
|
|
|
|
/**
|
|
* 销售订单发票
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@RequiredArgsConstructor
|
|
@Entity
|
|
@Table(name = "SALES_ORDER_INVOICE", schema = "supplier_ms")
|
|
@ToString
|
|
public class SalesOrderInvoice implements IdentityEntity, Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "ID", nullable = false)
|
|
private Integer id;
|
|
|
|
@Override
|
|
public final boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null) return false;
|
|
if (HibernateProxyUtils.isNotEffectiveClassEquals(o, this)) {
|
|
return false;
|
|
}
|
|
SalesOrderInvoice that = (SalesOrderInvoice) o;
|
|
return getId() != null && Objects.equals(getId(), that.getId());
|
|
}
|
|
|
|
@Override
|
|
public final int hashCode() {
|
|
return HibernateProxyUtils.hashCode(this);
|
|
}
|
|
|
|
|
|
}
|