格式化代码
This commit is contained in:
parent
62d95a3b6d
commit
4a74ae766b
@ -1,9 +1,6 @@
|
|||||||
package com.example.springdemo.entities;
|
package com.example.springdemo.entities;
|
||||||
|
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.*;
|
||||||
import jakarta.persistence.Entity;
|
|
||||||
import jakarta.persistence.Id;
|
|
||||||
import jakarta.persistence.Table;
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@ -18,6 +15,7 @@ import lombok.NoArgsConstructor;
|
|||||||
@Table(name = "Users")
|
@Table(name = "Users")
|
||||||
public class Users {
|
public class Users {
|
||||||
@Id
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;//主键,用户ID
|
private Long id;//主键,用户ID
|
||||||
private String name;//用户姓名
|
private String name;//用户姓名
|
||||||
@Column(name = "phoneNumber")
|
@Column(name = "phoneNumber")
|
||||||
|
Loading…
Reference in New Issue
Block a user