diff --git a/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java b/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java index f45305c..af35bac 100644 --- a/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java +++ b/src/main/java/io/gardenlinux/glvd/db/SourcePackageCve.java @@ -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; @@ -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; @@ -71,4 +75,8 @@ public boolean isVulnerable() { public String getCvePublishedDate() { return cvePublishedDate; } + + public String getVectorString() { + return vectorString; + } } \ No newline at end of file