mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
id自增长
This commit is contained in:
@@ -5,10 +5,7 @@ import com.xboe.core.SysConstant;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.*;
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -21,6 +18,7 @@ import java.time.LocalDateTime;
|
|||||||
@Table(name = "tip")
|
@Table(name = "tip")
|
||||||
public class Tip {
|
public class Tip {
|
||||||
@Id
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@Column(name = "id", length = 20)
|
@Column(name = "id", length = 20)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user