|
|
@@ -2,7 +2,6 @@ package com.uas.platform.b2b.model;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Set;
|
|
|
-
|
|
|
import javax.persistence.Cacheable;
|
|
|
import javax.persistence.CascadeType;
|
|
|
import javax.persistence.Column;
|
|
|
@@ -14,9 +13,8 @@ import javax.persistence.Id;
|
|
|
import javax.persistence.JoinColumn;
|
|
|
import javax.persistence.OneToMany;
|
|
|
import javax.persistence.OrderBy;
|
|
|
-import javax.persistence.SequenceGenerator;
|
|
|
import javax.persistence.Table;
|
|
|
-
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import org.hibernate.annotations.Cache;
|
|
|
import org.hibernate.annotations.CacheConcurrencyStrategy;
|
|
|
|
|
|
@@ -66,7 +64,8 @@ public class Resource implements Serializable{
|
|
|
/**
|
|
|
* 权限显示排序下标
|
|
|
*/
|
|
|
- @Column(name = "res_index")
|
|
|
+ @Column(name = "res_index", unique = true)
|
|
|
+ @NotNull
|
|
|
private Long index;
|
|
|
|
|
|
public Long getId() {
|