简体   繁体   English

制作Spring Boot应用程序以从现有的oracle数据库加载数据吗?

[英]Making a spring boot app to load data from an existing oracle database?

I've created a spring boot app to load data from an existing distant oracle database. 我创建了一个Spring Boot应用程序,以从现有的远程oracle数据库加载数据。 I succeeded to have a communication into the DB with the settings in my application.properties . 我成功地通过application.properties的设置与数据库进行了通信。 So my next step is how can I automatically generate my entites, and then get data? 因此,我的下一步是如何自动生成实体,然后获取数据? For this I've tried to connect with the Intellij UI but had many problems (Unable to apply SSH settings: Host & port not found) 为此,我尝试与Intellij UI连接,但遇到了许多问题(无法应用SSH设置:找不到主机和端口)

The main reason why I'm looking to do this by using a java app is that I have many blob data that I need to get. 我希望通过使用Java应用程序执行此操作的主要原因是,我需要获取许多Blob数据。

Any idea ? 任何想法 ?

Thanks. 谢谢。

I agree the best option is to make IntelliJ to generate entities for you and then hand engineer where required. 我同意最好的选择是使IntelliJ为您生成实体,然后在需要时进行手工设计。 If they are not too much you can hand engineer by yourself as the best option available. 如果它们不是太多,您可以自己动手设计作为最佳的选择。

In addition you can try with hibernate3-maven-plugin, I found that link to be useful http://www.celinio.net/techblog/?p=1125 另外,您可以尝试使用hibernate3-maven-plugin,我发现该链接非常有用http://www.celinio.net/techblog/?p=1125

您可以使用schema.sqldata.sql在资源目录中,这些都会得到在应用程序的开始执行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM