-
Notifications
You must be signed in to change notification settings - Fork 192
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
Query return type #426
Comments
As of now, returning integers is not supported but we're working on something here #361. |
I think the return value will be more general if it can support the definition of map,and it will deal with the situation of multiple columns
|
This is already possible by using your database's |
Yes, but only as a |
This is more or less the same issue as #200 so I'll close this as a duplicate of it. Please be sure to subscribe/enable notifications there to keep tabs on this feature. |
I'm trying to return the number of rows in database but,
query method doesn't accept a String, int or Object as a return type other than my entities ??
ex:
@ Query('SELECT COUNT(id) FROM Question')
Future < String > getNumberOfQuestions();
Error:
NoSuchMethodError: The getter 'constructor' was called on null.
Receiver: null
Tried calling: constructor
[INFO] Running build completed, took 10.6s
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 77ms
[SEVERE] Failed after 10.6s
pub finished with exit code 1
The text was updated successfully, but these errors were encountered: