{"ref":"content:first-java-cap-application","page":"/content/first-java-cap-application","json":"/content/first-java-cap-application.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"first-java-cap-application","title":"First Java Cap Application","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/first-java-cap-application/ba-p/13460643","content_type":"blog","published_on":"source:sap-community","explains":[{"ref":"capability:data-modelling","applies_to":{"ecosystems":["cap"]}},{"ref":"capability:database-connectors","applies_to":{"ecosystems":["cap"]}},{"ref":"capability:generators","applies_to":{"ecosystems":["cap"]}}],"summary":"A step-by-step walkthrough of a first CAP Java project: [com.sap.cds:cds-services-archetype](artifact:cap-java-cds-services-archetype) scaffolds the initial Maven project, and the domain model is then rewritten in the db folder with entities, the cuid and managed aspects, associations, compositions and a CodeList, so a hand-coded event handler serving a single entity gives way to a service that CAP's generic persistence handling serves without custom code. It deploys that model to [SQLite](external:sqlite) for local development — cds deploy --to sqlite, then a Spring profile pointing at the generated database file — and ends by adding an index.cds so the model and service can be published as a reusable npm module.","short":"First CAP Java project from the Maven archetype to a domain model","author":"bruce_wang3","published":"2020-12-08","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-09-28"},"drafted_with_ai":true,"history":[{"date":"2026-10-17","field":"explains","from":null,"to":"applies_to on capability:data-modelling (cap); capability:database-connectors (cap); capability:generators (cap)","reason":"Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md)."}]},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"poor","evidence":"published 70 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"poor","evidence":"@sap/cds 9.6.0, 2025-12 and 6 more"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":8909,"unit":"views"},{"value":3,"unit":"comments"},{"value":8,"unit":"likes"}]},"signals":{"views":8909,"likes":8,"comments":3,"metrics_at":"2026-10-25"},"series":null,"edges":{"authors":[]}}