cancel
Showing results for 
Search instead for 
Did you mean: 

Native query api missing methods?

andreasa
Champ in-the-making
Champ in-the-making
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.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
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);

andreasa
Champ in-the-making
Champ in-the-making
Thanks, I resorted to doing that.