spring-boot - 如何为现有的 jhipster 项目重新生成新的 JPA 实体(以及不同数据库模式中的数据库表)?
问题描述
对于使用 Spring Boot 和 AngularJS 作为技术堆栈生成的现有 Jhipster(4.6.2) 项目的默认公共模式以外,如何在不同模式中生成实体(和数据库表)。[数据库 - Postgresql]
解决方案
如果可能的话,我很感兴趣。否则,一种简单的方法可以实现:您可以尝试使用 jhipster 命令生成实体,jhipster entity <entityName> --[options]
请参阅更多详细信息。
并按照这篇优秀的文章自定义您的应用程序以使用多个数据库:https ://www.baeldung.com/spring-data-jpa-multiple-databases
推荐阅读
- xamarin - 图像未使用 XAML 以 Xamarin 形式显示?
- javascript - 有条件地查找和替换双引号中指定的字符串
- python-3.x - “”在python中是什么意思?
- vba - 在单元格单击时显示 MsgBox - 即使已选择单元格
- c - Scanf() 不等待整数输入
- c++ - 如何使用 QwtSpline 创建 B-Spline
- java - Hibernate HQL 注入示例
- bitbucket - 无法使用 Sourcetree 验证我的 Bitbucket 服务器帐户/如何使用 Bitbucket 服务器凭据在源树中注册
- c++ - 编译时输出模板类名
- javascript - 如何在 JQuery 中触发选择事件(按键或模糊)