![](/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.