on ‎2023 Jul 18 2:42 PM
Hi Team,
we want to make use of Cap for Java framework to deploy HANA content. However, the tutorial mentioned in the documentation: https://github.com/SAP-samples/cloud-cap-samples-java#prerequisites, follows the approach of having a separate NodeJS module inside the MTA Java-based project.
We want to know if we can have everything within the same application module without having to add a NodeJs module inside. We've heard about sideCar approach, but we understood that it's only for Multitenant apps, and our app only needs a shared and a single HANA container.
Could you please advise us? Do we really have to have a separate nodeJs module within our Java application for doing the HANA content deployment?
Kind regards,
Mustafa Sasa
SAP IoT
Request clarification before answering.
If you are using HANA HDI you need the Node-based HDI deployer module to deploy the content to the HDI container. There is no implementation of these features available directly in Java.
If you are using plain HANA schemas you can of course use Java-native schema lifecycle tools such as Liquibase or Flyway. However that of course comes without all the benefits of HDI and you are basically "on your own" in the area of schema evolution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the cds init command to create your Java app including Node.js deployer app out of the box. Following the CAP grow as you go approach, you can use cds add later on to add more features as required later on.
cds init my-app --add java,samples,hana
The db deployer module provides a start script that is called when deploying to CF. This start script simply calls the HDI deployer to deploy all generated HANA artefacts - all quite straight forward 😉 Thus, you don't need to deal with Node.js development.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.