首页 > 解决方案 > 如何为现有的 jhipster 项目重新生成新的 JPA 实体(以及不同数据库模式中的数据库表)?

问题描述

对于使用 Spring Boot 和 AngularJS 作为技术堆栈生成的现有 Jhipster(4.6.2) 项目的默认公共模式以外,如何在不同模式中生成实体(和数据库表)。[数据库 - Postgresql]

标签: spring-bootjpajhipster

解决方案


如果可能的话,我很感兴趣。否则,一种简单的方法可以实现:您可以尝试使用 jhipster 命令生成实体,jhipster entity <entityName> --[options] 请参阅更多详细信息。

并按照这篇优秀的文章自定义您的应用程序以使用多个数据库:https ://www.baeldung.com/spring-data-jpa-multiple-databases


推荐阅读