|
@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.basic.dao.entity;
|
|
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Entity;
|
|
|
|
+import javax.persistence.GeneratedValue;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
|
|
|
|
@@ -24,7 +25,8 @@ public class App extends JpaEntity {
|
|
* 应用ID
|
|
* 应用ID
|
|
*/
|
|
*/
|
|
@Id
|
|
@Id
|
|
- private String id;
|
|
|
|
|
|
+ @GeneratedValue
|
|
|
|
+ private Long id;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 应用名称
|
|
* 应用名称
|
|
@@ -38,11 +40,11 @@ public class App extends JpaEntity {
|
|
@Column(unique = true, nullable = false)
|
|
@Column(unique = true, nullable = false)
|
|
private String code;
|
|
private String code;
|
|
|
|
|
|
- public String getId() {
|
|
|
|
|
|
+ public Long getId() {
|
|
return id;
|
|
return id;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setId(String id) {
|
|
|
|
|
|
+ public void setId(Long id) {
|
|
this.id = id;
|
|
this.id = id;
|
|
}
|
|
}
|
|
|
|
|