|
@@ -4,6 +4,7 @@ import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Id;
|
|
|
|
+import javax.persistence.Index;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.jpa.JpaEntity;
|
|
import cn.com.qmth.examcloud.commons.web.jpa.JpaEntity;
|
|
@@ -16,7 +17,9 @@ import cn.com.qmth.examcloud.commons.web.jpa.JpaEntity;
|
|
* @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
* @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
*/
|
|
*/
|
|
@Entity
|
|
@Entity
|
|
-@Table(name = "EC_B_ROLE")
|
|
|
|
|
|
+@Table(name = "EC_B_ROLE", indexes = {
|
|
|
|
+ @Index(name = "IDX_B_R_010001", columnList = "rootOrgId,code", unique = true),
|
|
|
|
+ @Index(name = "IDX_B_R_010002", columnList = "rootOrgId,name", unique = false)})
|
|
public class RoleEntity extends JpaEntity {
|
|
public class RoleEntity extends JpaEntity {
|
|
|
|
|
|
private static final long serialVersionUID = -2167420238674588632L;
|
|
private static final long serialVersionUID = -2167420238674588632L;
|