From 435dc83349e866f98d8757267260f73dbb081ff7 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 31 Dec 2018 17:08:49 +0530 Subject: [PATCH] db: Fixes #2935 GC MySQL error This fixes the variable name to adhere to the DB framework convention as defined by the method interceptor that creates attributes: https://github.com/apache/cloudstack/blob/master/framework/db/src/main/java/com/cloud/utils/db/SearchBase.java#L480 Signed-off-by: Rohit Yadav --- .../main/java/com/cloud/offerings/NetworkOfferingVO.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/schema/src/main/java/com/cloud/offerings/NetworkOfferingVO.java b/engine/schema/src/main/java/com/cloud/offerings/NetworkOfferingVO.java index 8c501be04cf9..338ef57513b0 100644 --- a/engine/schema/src/main/java/com/cloud/offerings/NetworkOfferingVO.java +++ b/engine/schema/src/main/java/com/cloud/offerings/NetworkOfferingVO.java @@ -128,7 +128,7 @@ public class NetworkOfferingVO implements NetworkOffering { boolean inline; @Column(name = "is_persistent") - boolean isPersistent; + boolean persistent; @Column(name = "for_vpc") boolean forVpc; @@ -348,7 +348,7 @@ public NetworkOfferingVO(String name, String displayText, TrafficType trafficTyp this.elasticLb = false; this.inline = false; this.specifyIpRanges = specifyIpRanges; - this.isPersistent = isPersistent; + this.persistent = isPersistent; this.publicLb = publicLb; this.internalLb = internalLb; this.forVpc = isForVpc; @@ -481,12 +481,12 @@ public boolean isInline() { } public void setIsPersistent(Boolean isPersistent) { - this.isPersistent = isPersistent; + this.persistent = isPersistent; } @Override public boolean isPersistent() { - return isPersistent; + return persistent; } @Override