MyBatisNodeJs is a port from the The MyBatis data mapper framework for Node.Js.
MyBatisNodeJs understands the same xml files as input like MyBatis Java.
MyBatisNodeJs assumes that your POJO's (domains objects) exist on the directory domain:
To Know how to write mapping files read: http://mybatis.github.io/mybatis-3/
var mysql = ;globalpool = mysql;
var mybatis = ;app;app;var sessionFactory = ;globalsessionFactory = sessionFactory;
The string variable dir_xml points to the MyBatis mapping files directory.
The variable sessionFactory has methods for selectOne, selectMany, insert, update or delete objects.
The callback function is called with the user or null if not found.