I am also interested in this. I would like to have a templatized CRUD sqlmap that can generate a final sqlmap for a specific POJO based on the POJO fields. Is creating statement dynamically something that can be done or has been done in the past?thanks.
On Fri, Sep 25, 2009 at 4:34 AM, Joseph Piron <joseph.pi...@gmail.com>wrote: > Hello Kambiz, > > thanks for your answer. > Unfortunately, I'm not able to go further. > Indeed, the CachingStatement has a constructor which gets a MappedStatement > as argument and I don't find the BaseStatement in the > IBatisNet.DataMapper.MappedStatements namespace. > Are you sure this is not only available in Java ? > Would you have any example for me as a guideline ? > > Thanks. > > 2009/9/25 Kambiz Tavakoli <kambiz.tavak...@mgm-tp.com> > > Hello Joseph, >> >> MappedStatement is an interface. >> You can try >> BaseStatement<http://ibatis.apache.org/docs/java/dev/com/ibatis/sqlmap/engine/mapping/statement/BaseStatement.html> >> or >> CachingStatement<http://ibatis.apache.org/docs/java/dev/com/ibatis/sqlmap/engine/mapping/statement/CachingStatement.html> >> . >> You can also use your own Class implementing the >> MappedStatement interface. >> >> kambiz >> >> >> >> >> >> ------------------------------ >> *Von:* Joseph Piron [mailto:joseph.pi...@gmail.com] >> *Gesendet:* Donnerstag, 24. September 2009 22:03 >> *An:* dev@ibatis.apache.org >> *Betreff:* Programmatically add a statement >> >> Dears, >> >> I'm looking for some information on ibatisnet api. >> Indeed, I'm trying to add a statement in runtime and I haven't found >> enough information on how to do this... :) >> I've tried the AddMappedStatement method, but the MappedStatement class >> doesn't seem to have a constructor.. >> >> Could someone help me ? >> >> Thanks all! >> > >