You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package com.xkcoding.springbootdemojpa.entity;
-
- import lombok.Data;
- import org.hibernate.annotations.DynamicUpdate;
-
- import javax.persistence.*;
- import java.util.Date;
-
- @Entity
- @Data
- @DynamicUpdate
- public class JpaUser {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
-
- @Column(name = "name")
- private String name;
-
- @Column(name = "create_time")
- private Date createTime;
- }
|