Use lowercase for table names in beans 65/89065/1
authorElena Kuleshov <evn@att.com>
Sat, 25 May 2019 12:30:00 +0000 (08:30 -0400)
committerElena Kuleshov <evn@att.com>
Sat, 25 May 2019 12:31:36 +0000 (08:31 -0400)
Uppercase table names cause issues on db queries

Issue-ID: SO-1969
Signed-off-by: Kuleshov, Elena <evn@att.com>
Change-Id: I468cfc6635c68771caf04a1f75d336559877d288

mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/ActivitySpecCategories.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/ActivitySpecParameters.java
mso-catalog-db/src/main/java/org/onap/so/db/catalog/beans/VnfResourceWorkflow.java

index e7ace2c..b5da55c 100644 (file)
@@ -27,7 +27,7 @@ import org.hibernate.annotations.NotFoundAction;
 import uk.co.blackpepper.bowman.annotation.LinkedResource;
 
 @Entity
-@Table(name = "ACTIVITY_SPEC_CATEGORIES")
+@Table(name = "activity_spec_categories")
 public class ActivitySpecCategories implements Serializable {
 
     private static final long serialVersionUID = -6251150462067699643L;
index 5173f27..ed05640 100644 (file)
@@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringBuilder;
 import com.openpojo.business.annotation.BusinessKey;
 
 @Entity
-@Table(name = "ACTIVITY_SPEC_PARAMETERS")
+@Table(name = "activity_spec_parameters")
 public class ActivitySpecParameters implements Serializable {
 
     private static final long serialVersionUID = 3627711377147710046L;
index f49ae26..92cc5d1 100644 (file)
@@ -44,7 +44,7 @@ import uk.co.blackpepper.bowman.annotation.LinkedResource;
 
 @Entity
 @IdClass(VnfResourceWorkflowId.class)
-@Table(name = "VNF_RESOURCE_TO_WORKFLOW")
+@Table(name = "vnf_resource_to_workflow")
 public class VnfResourceWorkflow implements Serializable {
 
     private static final long serialVersionUID = -1326433350241927676L;