AnsweredAssumed Answered

Add own MappedStatement

Question asked by akakunin on Mar 3, 2011
Latest reply on Apr 20, 2011 by nikpetrovic
Hi!
During implementaiton of Liferay and Activiti integration I need to do specific queries to Activiti DB - not covered by standard Query-classes.

So, I've decided to implement own query-class (inherited from AbstractQuery) - and I'm blocked by implementing list-method - actually it is simple like:

return commandContext.getDbSqlSession().selectList(statement, this, page);

But - problem with statement.
All statements are stored in xml class and loaded in myBatis configuration during start-up.
Is it possible in runtime to add own mapped-stament file into current myBatis configuration?
Or I should change default activiti mybatis configuration file (activiti.ibatis.mem.conf.xml)?

Outcomes