Skip to content

Commit 542378e

Browse files
committed
Align bookshop with CAP Java archetype
1 parent fac44ef commit 542378e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gen/
22
edmx/
3-
schema.sql
3+
schema-h2.sql
44
schema-nomocks.sql
55
default-env.json
66
openapi.json

srv/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@
220220
<configuration>
221221
<commands>
222222
<command>build --for java</command>
223-
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema.sql"</command>
224-
<command>deploy --to h2 --dry --out "${project.basedir}/src/main/resources/schema-nomocks.sql"</command>
223+
<command>deploy --to h2 --with-mocks --dry --out "${project.basedir}/src/main/resources/schema-h2.sql"</command>
225224
<command>compile srv/cat-service.cds -2 openapi --openapi:url /api/browse &gt;
226225
"${project.basedir}/src/main/resources/swagger/openapi.json"</command>
227226
</commands>

srv/src/main/resources/application.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ cds:
128128
---
129129
spring:
130130
config.activate.on-profile: default
131+
sql.init.platform: h2
131132
cds:
132133
data-source:
133134
auto-config.enabled: false

0 commit comments

Comments
 (0)