首页>代码>Spring Boot整合Flyway框架实现自动新建mysql数据库表,并且插入、删除数据>/springboot-flyway/src/main/java/com/hellokoding/springboot/jpa/book/Book.java
package com.hellokoding.springboot.jpa.book; import lombok.Data; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity @Data public class Book { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; private String title; private String description; }