问题描述
我在Java项目中创建了许多这样的实体:
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name="backup_item")
public class BackupItem {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long id;
public Path path;
}
现在我需要为其创建更改日志:
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
<changeSet id="1" author="rrrr">
<sql>
CREATE TABLE backup_item(
id SERIAL PRIMARY KEY NOT NULL,);
</sql>
<rollback>
DROP TABLE backupset;
</rollback>
</changeSet>
有没有可以自动为我创建工具的工具?我至少要租用10张桌子,要一一手动创建它们会花费很多时间。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)