From 12bcedf2120b207837bb3a7163adee84468043d1 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Fri, 13 Sep 2024 15:07:39 +0200 Subject: [PATCH] add vector_string --- .../java/io/gardenlinux/glvd/db/SourcePackageCve.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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