Closed EzxD closed 2 years ago
By now you return a Json with can be converted to a LinkedHashMap. This is wha you return:
{id=bc2266bd-ba3a-4cd9-9490-c9b856b71bc9, lastName=testLastName, name=testName1, uuid=705d28d7-19b2-4d3b-8268-f40c65223a80}
You can´t cast this to the user class by now. You have to cast it to a LinkedHashMap and have to get every value extra for the key which is not so nice.
If you convert a class to json it looks like:
{"uuid":"5bbfa3a8-81c7-4987-a431-aac52dd3f291","name":"testName1","lastName":"testLastName"}
It´s pretty simillar to your output but would have a huge impact on development speed. You can easily cast this to the UserClass
Just a little improvement
I am talking about the java driver
By now you return a Json with can be converted to a LinkedHashMap. This is wha you return:
You can´t cast this to the user class by now. You have to cast it to a LinkedHashMap and have to get every value extra for the key which is not so nice.
If you convert a class to json it looks like:
It´s pretty simillar to your output but would have a huge impact on development speed. You can easily cast this to the UserClass
Just a little improvement