Java Techies- Solution for All
MyBatis Introduction
1.1 MyBatis 3.0MyBatis is an open source technology, It is a persistence framework, available for Java/.NET. MyBatis supports custom SQL, stored procedures and advanced mappings.
Learn More ... |
MyBatis and Hibernate both are open source technology. MyBatis is very easy to learn whereas Hibernate is relatively more complex and higher threshold.
Learn More ... |
There are some steps which have to be followed in order to setup the MyBatis. These steps are given here -
Learn More ... |
There are mainly following steps to create CRUD operation in MyBatis, First creating the SqlMapConfig.xml, after that POJO class has been created and then Mapper Class.
Learn More ... |
ConnectionFactory class maintain the connection with the Database with the help of SqlSessionFactoryBuilder .
The SqlSessionFactoryBuilder reads the configuration details from the sqlMapConfig.xml file.
Learn More ... |
You can test your MyBatis application by creating its example. Here is the example for testing the MyBatis application.
|