-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping a Row object to a class or JSON response #18
Comments
Yes, for now, there is no way. But, even if we would expose the Session object you would be able to do save/get/delete operations in non-Vert.x way(with ListenableFuture), which is not good. |
As a solution, I think we can implement a wrapper around MappingManager and Mapper, so a user will be able to use result mapping and save/get/delete operations(which will return io.vertx.core.Future). |
@zwennesm, are you interested in contributing this? |
Sure thing, I’d be happy to help. |
Good. Look forward to your PR. If you have any questions, feel free to ask them. |
@Sammers21 @zwennesm implementing a vertxy mapping manager sounds good to me. However it shouldn't be done with |
agree with this |
Thanks @Sammers21 and @tsegismont for the instructions and information. I'll give it a start somewhere in the upcoming days. One small question upfront though. Would you like the mapper to be integrated into the |
I believe having a single project is better.
|
+1 |
Fixed in #20 |
Hi there,
I'm sorry if I'm asking a stupid question but I was wondering what's the best way to retrieve the Cassandra data and map it to an object or JSON response?
With the Datastax driver it's recommended to use a mapper but i did not find a way to use the mapper here because the Cassandra session is closed off.
The other solution would be to create a customer handler that loops over the rows and transforms it to responses and/or POJO's.
Example code:
I would appreciate the help.
The text was updated successfully, but these errors were encountered: