Wms初始化扫描实体字段新增逻辑优化

yun-zuoyi
袁津哲 6 years ago
parent 29f785ed35
commit e1386275d0

@ -9,6 +9,7 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
@ -20,7 +21,10 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_FIELDINFO")
@Table(name="WMS_FIELDINFO", indexes = {
@Index(columnList = "FIELD_NAME"),
@Index(columnList = "ENTITY_NAME")
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
@ -21,7 +22,10 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_LISTELEMENT")
@Table(name="WMS_LISTELEMENT", indexes = {
@Index(columnList = "FIELD_NAME"),
@Index(columnList = "USER_CODE")
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
@ -21,7 +22,11 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_LISTELEMENT_FUNCTION")
@Table(name="WMS_LISTELEMENT_FUNCTION", indexes = {
@Index(columnList = "FUNCTION_ID"),
@Index(columnList = "ELEMENT_ID"),
@Index(columnList = "USER_CODE")
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
@ -21,7 +22,9 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_SEARCHELEMENT")
@Table(name="WMS_SEARCHELEMENT", indexes = {
@Index(columnList = "FIELD_NAME")
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

@ -10,6 +10,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
@ -21,7 +22,13 @@ import javax.persistence.Table;
**/
@Data
@Entity
@Table(name="WMS_SEARCHELEMENT_FUNCTION")
@Table(name="WMS_SEARCHELEMENT_FUNCTION", indexes = {
@Index(columnList = "FUNCTION_ID"),
@Index(columnList = "SEARCH_NAME"),
@Index(columnList = "SEARCH_ELEMENT_ID"),
@Index(columnList = "IS_SHARE"),
@Index(columnList = "USER_CODE")
})
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)

Loading…
Cancel
Save