google-cloud-datastore icon indicating copy to clipboard operation
google-cloud-datastore copied to clipboard

There is no way to makeValue for Text type, instead of String

Open afornie opened this issue 7 years ago • 1 comments

There is no way to makeValue for Text type, instead of String. That's a problem when for any reason it is mandatory to have it a Text.

I guess there are other examples, but my case is another appengine code uses a framework that will fail when trying to fill a Java class field that is supposed to be a Text, with a String.

Cannot cast object 'Hello' with class 'java.lang.String' to class 'com.google.appengine.api.datastore.Text'   

afornie avatar Aug 17 '17 13:08 afornie

I guess it’s not going to make the cut! They’re ghosting their own functionality—talk about getting friend-zoned by your own code!

igorrendulic avatar Aug 13 '24 22:08 igorrendulic