|
|
@@ -25,15 +25,13 @@ import java.util.Set;
|
|
|
*
|
|
|
*/
|
|
|
@Entity
|
|
|
-@Table(name = "products", indexes = {@Index(name = "products_code_index", columnList = "pr_code"),
|
|
|
- @Index(name = "products_enuu_index", columnList = "pr_enuu"),
|
|
|
- @Index(name = "products_cmpcode_index", columnList = "pr_cmpcode"),
|
|
|
- @Index(name = "products_brand_index", columnList = "pr_brand"),
|
|
|
+@Table(name = "products", indexes = {
|
|
|
@Index(name = "products_enuu_code_index", columnList = "pr_enuu,pr_code", unique = true),
|
|
|
- @Index(name = "products_enuu_standard_index", columnList = "pr_enuu,pr_standard"),
|
|
|
- @Index(name = "products_erpdown_index", columnList = "pr_erpdown"),
|
|
|
@Index(name = "pr_createtime_index", columnList = "pr_create_time"),
|
|
|
- @Index(name = "products_kind_index", columnList ="pr_kind,pr_kindid" )
|
|
|
+ @Index(name = "products_kind_index", columnList ="pr_kind" ),
|
|
|
+ @Index(name = "pr_cmpuuid_index", columnList = "pr_cmpuuid"),
|
|
|
+ @Index(name = "products_pbranden_index", columnList = "pr_pbranden"),
|
|
|
+ @Index(name = "products_pcmpcode_index", columnList = "pr_pcmpcode")
|
|
|
})
|
|
|
@Logger
|
|
|
public class Product {
|