VOL-1175: Added proxy CRUD for new data model
Change-Id: Ie218a2567746d87a951f23aa6b774b2f01541cf9
diff --git a/db/model/child_type.go b/db/model/child_type.go
index 0020e7d..13b0245 100644
--- a/db/model/child_type.go
+++ b/db/model/child_type.go
@@ -20,7 +20,7 @@
desc "github.com/golang/protobuf/descriptor"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/protoc-gen-go/descriptor"
- "github.com/opencord/voltha/protos/go/common"
+ "github.com/opencord/voltha-go/protos/common"
"reflect"
"strconv"
"sync"
@@ -61,7 +61,9 @@
msgType := reflect.TypeOf(cls)
- if names, names_exist = GetInstance().ChildrenFieldsCache[msgType.String()]; !names_exist {
+ inst := GetInstance()
+
+ if names, names_exist = inst.ChildrenFieldsCache[msgType.String()]; !names_exist {
names = make(map[string]*ChildType)
_, md := desc.ForMessage(cls.(desc.Message))
@@ -75,7 +77,7 @@
var keyFromStr func(string) interface{}
if meta.(*common.ChildNode).GetKey() == "" {
- fmt.Println("Child key is empty ... moving on")
+ //fmt.Println("Child key is empty ... moving on")
} else {
parentType := FindOwnerType(reflect.ValueOf(cls), field.GetName(), 0, false)
keyType := FindKeyOwner(reflect.New(parentType).Elem().Interface(), meta.(*common.ChildNode).GetKey(), 0)