BOM, Locate POJO 增加索引

yun-zuoyi
rock.yu 4 years ago
parent 46904c43d1
commit 40fc186ed6

@ -14,10 +14,7 @@ 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.Table;
import javax.persistence.Transient;
import javax.persistence.*;
/**
* @Description :
@ -28,7 +25,9 @@ import javax.persistence.Transient;
**/
@Data
@Entity
@Table(name = "WMS_BOM")
@Table(name = "WMS_BOM", indexes = {
@Index(columnList = "PART_NO"),
@Index(columnList = "ITEM_PART_NO")})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

@ -12,10 +12,7 @@ import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.*;
/**
* @Description :
@ -26,7 +23,9 @@ import javax.persistence.Transient;
**/
@Data
@Entity
@Table(name = "WMS_LOCATE")
@Table(name = "WMS_LOCATE", indexes = {
@Index(columnList = "LOCATE_NO"),
@Index(columnList = "ZONE_NO")})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

Loading…
Cancel
Save