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