generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from it-at-m/39-db-für-entwicklung-von-broadca…
…st-service-bereitstellen db in docker für entwicklung von broadcast service bereitstellen
- Loading branch information
Showing
11 changed files
with
122 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- Switch to pluggable database | ||
alter session set container=XEPDB1; | ||
|
||
-- produces ignorable error message `user name 'WLS_BROADCAST_SERVICE' conflicts with another ...` | ||
-- when the user already exists | ||
|
||
-- add user for wls-broadcast-service | ||
CREATE USER wls_broadcast_service IDENTIFIED BY secret QUOTA UNLIMITED ON USERS; | ||
GRANT CONNECT, RESOURCE, CREATE SESSION TO wls_broadcast_service; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
wls-broadcast-service/src/main/resources/application-db-h2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
spring: | ||
h2.console.enabled: true | ||
datasource: | ||
username: sa | ||
password: | ||
url: jdbc:h2:mem:wls-broadcast-service | ||
flyway: | ||
enabled: true | ||
jpa: | ||
database: H2 | ||
hibernate: | ||
ddl-auto: validate | ||
naming.physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
show-sql: true |
16 changes: 16 additions & 0 deletions
16
wls-broadcast-service/src/main/resources/application-db-oracle.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
spring: | ||
datasource: | ||
username: wls_broadcast_service | ||
password: secret | ||
url: jdbc:oracle:thin:@//localhost:1521/XEPDB1 | ||
flyway: | ||
enabled: true | ||
jpa: | ||
database: oracle | ||
hibernate: | ||
ddl-auto: validate | ||
naming.physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
properties: | ||
hibernate: | ||
format_sql: true | ||
show-sql: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
wls-broadcast-service/src/main/resources/db/migrations/h2/V0_1__createTableTheEntity.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE theEntity | ||
( | ||
id varchar2(36) NOT NULL primary key, | ||
textAttribute varchar2(8) NOT NULL | ||
) |
5 changes: 5 additions & 0 deletions
5
wls-broadcast-service/src/main/resources/db/migrations/oracle/V0_1__createTableTheEntity.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE theEntity | ||
( | ||
id varchar2(36) NOT NULL primary key, | ||
textAttribute varchar2(8) NOT NULL | ||
) |
10 changes: 10 additions & 0 deletions
10
wls-broadcast-service/src/test/resources/http_requests/theEntityExamples.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### | ||
POST http://localhost:39146/theEntities | ||
Content-Type: application/json | ||
|
||
{ | ||
"textAttribute": "my text" | ||
} | ||
|
||
### | ||
GET http://localhost:39146/theEntities |