格式化代码

This commit is contained in:
myh 2023-10-25 18:10:52 +08:00
parent 62d95a3b6d
commit 4a74ae766b

View File

@ -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")