Comments (4)
Hi @alperdedeoglu san,
Thanks for your solution. I think extend
CDS is effective for this situation.
I used your code and changed package.json
to switch between production and development profiles like previous answer by Gregorwolf then working.
from btp-cap-multitenant-saas.
Please check this example: fiori/package.json#L42
from btp-cap-multitenant-saas.
Hi @gregorwolf,
Thanks for your answer. That is helpful and I already checked this code sample.
But my question is how to refer to db CDS from service CDS.
For example, when I want to add Shared entity to public-service.cds, now I am writing like below.
using {susaas.common as common} from '../../db/hana/data-model';
...
service PublicService @(path : '/catalog/PublicService', impl: 'srv/public-service') {
entity Shared as projection on common.Shared
...
Hence I am specifying db/hana/ directory, I cannot use it in for local SQLite.
How to automatically switch path in service CDS, or something alternatives?
from btp-cap-multitenant-saas.
Hi Dear @kaztakata san,
Thank you very much for your contribution!
To be honest, when we designed this "common container" approach, I personally only considered the database layer usage.
But your requirement is valid and makes sense. I think it might be useful for the rest of our valued susaas community members too.
I have a nice solution proposal for the problem you have.
This solution proposal should not change the behavior of the repository and should also fix the problem you have.
The main reason we have two files is that Shared entitys DB artifacts are already created on deployment; therefore, we would like to mention it to HANA to avoid errors, but for sqlite we ne need to create the tables.
Can you please confirm if the changes on the fix/cc-localdev branch fix the problem you have?
I also linked the relevant PR to this issue.
from btp-cap-multitenant-saas.
Related Issues (20)
- Screenshots are not visible in documentation at any page HOT 1
- Replacement of "console.log" statements with "cds.log" in the project.
- Update npm package versions in the repo HOT 2
- Update Alerrt Notification Service parameters HOT 1
- Kyma Docker image build fails due to missing sapse/html5-app-deployer:5.0.2 image
- Question: Blue-green deployment strategy HOT 4
- shared db not used HOT 3
- Onboarding Test HOT 1
- custom-domain-routes no routes found HOT 2
- Integrate apps in SAP Build Work Zone HOT 7
- Issue with the Kyma deployment: susaas-hana-deployer stuck in status pending HOT 3
- Adopt new @capjs-telemetry plugin and remove deprecated application logging service, put instead CLS HOT 1
- Blue Green Deployment - CF and Kyma
- Error when starting susaas-srv, cannot find catalog 'hana' HOT 3
- When trying to build on widnows HOT 11
- adopt @capjs/hana driver
- use CAP built-in /health endpoint for healthchecks in Runtimes (CF + Kyma )
- [rl-vulnerability_alerts-1] Violation against OSS Rules of Play HOT 1
- [rl-license_file-1] Violation against OSS Rules of Play HOT 1
- Update UI Versions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btp-cap-multitenant-saas.