![](/img/trans.png)
[英]Is there a simple way for querying a specific document from a collection of a mongodb database using spring boot without entity/pojo classes?
[英]How to create entity classes from database using spring boot?
我正在使用 spring 数据 jpa Spring 工具套件 IDE 中的 spring 启动应用程序。我需要从数据库创建实体类,但我找不到如何做的答案。
我看到了关于添加 JPA Facet 添加和使用它的答案。 但是我无法添加 JPA Facet,因为我的应用程序是 maven web,而不是 jee 应用程序。
您不从数据库创建实体类。 您可以创建模型来映射表及其与其他表的关系。
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
https://www.vogella.com/tutorials/JavaPersistenceAPI/article.html#simple
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.