[英]Generate script sql from “Entities” of spring-data-jdbc
我需要使用spring-data-jdbc创建sql脚本。 使用spring-data-jpa我没有问题,但我想知道是否有可能使用spring-data-jdbc自动执行脚本
我使用spring-data-jpa实现了它,但我找不到spring-data-jdbc的信息。
你能帮我吗。
#spring-data-jpa
spring:
jpa:
properties:
javax:
persistence:
schema-generation:
create-source: metadata
scripts:
action: drop-and-create
drop-target : .\src\main\resources\drop.sql
create-target: .\src\main\resources\create-script.sql
提前致谢。
Spring Data JDBC尚不支持此功能。
你可能想看一个问题: https : //jira.spring.io/browse/DATAJDBC-338
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.