Skip to content

Commit 7d9f6e6

Browse files
committed
Clear Tables map before execution of plugin - To support multiple plugin executions in pom.xml
1 parent 6c758c4 commit 7d9f6e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/github/ngbsn/generator/code/JPACodeGenerator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public static void main(final String[] args) throws SQLParsingException, Templat
4545
*/
4646
public static void generateCode(final String sqlScript, final String packageName) throws IOException, TemplateException, SQLParsingException {
4747
logger.debug("sql script {}", sqlScript);
48+
ModelGenerator.clearTablesMap();
4849
List<Table> tables = generateModels(sqlScript);
4950
processTemplate(tables, packageName);
5051
}

0 commit comments

Comments
 (0)