Using SDK for Scala #31703
Unanswered
ivanthewebber
asked this question in
Q&A
Using SDK for Scala
#31703
Replies: 1 comment
-
As I got no response, I've added a work around of adding getProperty and setProperty methods that allow my data to be serialized. If you're needing to use this client library the same work around might work for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to connect to an Azure Cosmos DB using this library using the Java SDK from Scala. There are numerous examples for how to connect with Spark, but I am not using Spark and want to do typical CRUD operations. The problem is that my classes can't be serialized.
Normally when using the Jackson library for Scala you would just do as the following when creating the ObjectMapper and case classes could be serialized:
However, the Cosmos DB Client API doesn't expose the ObjectMapper, so I can't add a Serializer.
Can you please create a public method that can expose the ObjectMapper and/or some Scala examples to help make it possible to use the Cosmos DB client with Scala?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions