-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add external fields to combination and unicorn
- Loading branch information
1 parent
9ce42dc
commit 46129d4
Showing
17 changed files
with
118 additions
and
57 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
beacon-engine/src/main/resources/db/migration/V2.7__add_external_to_combination.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,4 @@ | ||
ALTER TABLE vdf_combination | ||
ADD COLUMN ext_src_id varchar(255) NOT NULL, | ||
ADD COLUMN ext_status smallint(6) NOT NULL, | ||
ADD COLUMN ext_value varchar(255) NOT NULL; |
4 changes: 4 additions & 0 deletions
4
beacon-engine/src/main/resources/db/migration/V2.8__add_external_to_vdf_unicorn.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,4 @@ | ||
ALTER TABLE vdf_unicorn | ||
ADD COLUMN ext_src_id varchar(255) NOT NULL, | ||
ADD COLUMN ext_status smallint(6) NOT NULL, | ||
ADD COLUMN ext_value varchar(255) NOT NULL; |
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
43 changes: 0 additions & 43 deletions
43
beacon-interface/src/main/java/com/example/beacon/interfac/domain/pulse/External.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
beacon-interface/src/main/java/com/example/beacon/interfac/domain/pulse/ExternalDto.java
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,35 @@ | ||
package com.example.beacon.interfac.domain.pulse; | ||
|
||
import com.example.beacon.interfac.infra.ExternalEntity; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class ExternalDto { | ||
|
||
private String sourceId; | ||
|
||
private short statusCode; | ||
|
||
private String value; | ||
|
||
private ExternalDto(String sourceId, short statusCode, String value) { | ||
this.sourceId = sourceId; | ||
this.statusCode = statusCode; | ||
this.value = value; | ||
} | ||
|
||
public static ExternalDto newExternalFromEntity(ExternalEntity entity){ | ||
return new ExternalDto(entity.getSourceId(), entity.getStatusCode(), entity.getValue()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "External{" + | ||
"sourceId='" + sourceId + '\'' + | ||
", statusCode=" + statusCode + | ||
", value='" + value + '\'' + | ||
'}'; | ||
} | ||
} |
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
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
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
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