包装明细接口增加索引

yun-zuoyi
joke.wang 4 years ago
parent e18b726369
commit 92e0acee58

@ -4,17 +4,14 @@ import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import java.io.Serializable;
/**
@ -30,7 +27,12 @@ import java.io.Serializable;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Inheritance(strategy = InheritanceType.JOINED)
@Table(name = "IF_PACKAGE_DETAIL")
@Table(name = "IF_PACKAGE_DETAIL", indexes = {
@Index(columnList = "SERIAL_NUMBER"),
@Index(columnList = "PART_NO")
}, uniqueConstraints = {
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "SERIAL_NUMBER", "IF_CODE"})
})
@Api("包装明细表")
public class IfPackageDetail extends BaseBean implements Serializable {

Loading…
Cancel
Save