Skip to content

Commit

Permalink
add vector_string
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed Sep 13, 2024
1 parent 797aada commit 12bcedf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class SourcePackageCve {
@Column(name = "base_score", nullable = true)
private float baseScore;

@Column(name = "vector_string", nullable = true)
private String vectorString;

@Column(name = "source_package_name", nullable = false)
private String sourcePackageName;

Expand All @@ -34,9 +37,10 @@ public class SourcePackageCve {
public SourcePackageCve() {
}

public SourcePackageCve(String cveId, float baseScore, String sourcePackageName, String sourcePackageVersion, String gardenlinuxVersion, boolean isVulnerable, String cvePublishedDate) {
public SourcePackageCve(String cveId, float baseScore, String vectorString, String sourcePackageName, String sourcePackageVersion, String gardenlinuxVersion, boolean isVulnerable, String cvePublishedDate) {
this.cveId = cveId;
this.baseScore = baseScore;
this.vectorString = vectorString;
this.sourcePackageName = sourcePackageName;
this.sourcePackageVersion = sourcePackageVersion;
this.gardenlinuxVersion = gardenlinuxVersion;
Expand Down Expand Up @@ -71,4 +75,8 @@ public boolean isVulnerable() {
public String getCvePublishedDate() {
return cvePublishedDate;
}

public String getVectorString() {
return vectorString;
}
}

0 comments on commit 12bcedf

Please sign in to comment.