jhipster import-jdl在liquibase master.xml中使用相对路径

时间:2018-10-12 01:06:00

标签: jhipster code-generation liquibase relative-path jdl

jhipster import-jdl model.jh默认情况下会生成以下树结构:

src/main/resources/config/liquibase
├── authorities.csv
├── changelog
│   ├── 00000000000000_initial_schema.xml
├── master.xml
├── users.csv
└── users_authorities.csv

master.xml包含以下内容:

<include 
   file="config/liquibase/changelog/00000000000000_initial_schema.xml" 
   relativeToChangelogFile="false"
/>

有没有办法让jhipster import-jdl生成relativeToChangelogFile="true"

所需结果:

<include 
   file="changelog/00000000000000_initial_schema.xml" 
   relativeToChangelogFile="true"
/>

jhipster版本:

$ jhipster --version
Using JHipster version installed globally
5.4.2

1 个答案:

答案 0 :(得分:0)

JHipster或JDL不支持此功能。您将必须手动更改值。