In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Many novices are not very clear about how to use JDBC to operate the HANA database deployed on the SAP cloud platform. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.
I introduced how to deploy the HANA database instance on the SAP cloud platform through JPA and EclipseLink operations.
We use JDBC instead of JPA and Eclipse to accomplish the same task.
Download the example program from this link.
The example program is located in the samples folder of the SDK.
After importing to Eclipse, you also need to change its Targeted Runtimes to Java Web Tomcat 8. 0.
Deploy the application to the SAP cloud platform:
Unlike the JPA + EclipseLink example, in the case of JDBC, the model class Person does not need to add any Annotation, so compare the two Person.java implementations of solution:
In contrast, JDBC's solution, inserting and reading HANA databases, is implemented by PersonDAO.java.
After the cloud deployment is completed, also create a binding to the HANA database instance for the JDBC application:
You can then find the application's access url in Cockpit:
The app can then be accessed on PC and mobile phones:
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.