Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Legal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Legal
Commits
5e1e346a
Commit
5e1e346a
authored
3 years ago
by
Riabokon Stanislav(EPAM)[GCP]
Browse files
Options
Downloads
Patches
Plain Diff
Fixed changes.
parent
b02c1b16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!204
Fixed changes.
Pipeline
#87014
failed
3 years ago
Stage: .pre
Stage: review
Stage: build
Stage: coverage
Stage: containerize
Stage: scan
Stage: deploy
Stage: integration
Stage: attribution
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provider/legal-gcp/src/main/java/org/opengroup/osdu/legal/mappers/osm/PgTenantOsmDestinationResolver.java
+7
-6
7 additions, 6 deletions
...sdu/legal/mappers/osm/PgTenantOsmDestinationResolver.java
with
7 additions
and
6 deletions
provider/legal-gcp/src/main/java/org/opengroup/osdu/legal/mappers/osm/PgTenantOsmDestinationResolver.java
+
7
−
6
View file @
5e1e346a
...
...
@@ -54,8 +54,10 @@ public class PgTenantOsmDestinationResolver implements PgDestinationResolver {
private
final
PgOsmConfigurationProperties
properties
;
private
static
final
String
DATASOURCE
=
".datasource."
;
private
static
final
String
PASSWORD
=
DATASOURCE
.
concat
(
"password"
);
private
final
static
String
DATASOURCE
=
".datasource."
;
private
final
static
String
URL
=
DATASOURCE
.
concat
(
"url"
);
private
final
static
String
USERNAME
=
DATASOURCE
.
concat
(
"username"
);
private
final
static
String
PASSWORD
=
DATASOURCE
.
concat
(
"password"
);
private
static
final
String
DRIVER_CLASS_NAME
=
"org.postgresql.Driver"
;
...
...
@@ -82,10 +84,9 @@ public class PgTenantOsmDestinationResolver implements PgDestinationResolver {
}
Map
<
String
,
Property
>
partitionProperties
=
partitionInfo
.
getProperties
();
String
url
=
"jdbc:postgresql://localhost:5432/postgres"
;
//getPartitionProperty(partitionId, partitionProperties, URL);
String
username
=
"postgres"
;
//getPartitionProperty(partitionId, partitionProperties, USERNAME);
String
password
=
"st4s"
;
getPartitionProperty
(
partitionId
,
partitionProperties
,
PASSWORD
);
String
url
=
getPartitionProperty
(
partitionId
,
partitionProperties
,
URL
);
String
username
=
getPartitionProperty
(
partitionId
,
partitionProperties
,
USERNAME
);
String
password
=
getPartitionProperty
(
partitionId
,
partitionProperties
,
PASSWORD
);
dataSource
=
DataSourceBuilder
.
create
()
.
driverClassName
(
DRIVER_CLASS_NAME
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment