Native query api missing methods?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2013 08:13 AM
The user guide (http://www.activiti.org/userguide/index.html#queryAPI) states that I should be able to do native queries using a fluent builder. However the .select() or .from() methods on all of the NativeQuery interfaces seems to be missing.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2013 10:15 AM
Looks like user guide is out of date. You should use the full SQL-statement instead:
/**
* Hand in the SQL statement you want to execute. BEWARE: if you need a count you have to hand in a count() statement
* yourself, otherwise the result will be treated as lost of Activiti entities.
*
* If you need paging you have to insert the pagination code yourself. We skipped doing this for you
* as this is done really different on some databases (especially MS-SQL / DB2)
*/
T sql(String selectClause);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2013 07:10 AM
Thanks, I resorted to doing that.
