Monthly Archives: March 2014

Simple Example of Mybatis JAVA Maven Implementation 7 – A Best Practice

In this example, we will implement a boilerplate class which takes care of common tasks like connection object, new session creation, sql mapper retrieval, transaction. Previous Example All Mybatics Examples/Topics In a regular implementation, you would maintain a global SqlSessionFactory,

Tagged with: , ,
Posted in MyBatis

Simple Example of Mybatis JAVA Maven Implementation 6 – Parameter Types How to Handle Multiple Parameters

Previous Example Next Example All Mybatics Examples/Topics We are going to summarize all different kinds of parameter types, and also explain how to handle multiple input parameter scenarios. There is no new code added, we will just use the previous

Tagged with: , ,
Posted in MyBatis

Simple Example of Mybatis JAVA Maven Implementation 5 – Collection Continued

Previous Example Next Example All Mybatics Examples/Topics We will show a different way to query and retrieve child elements in this post. In previous example, we use one query to join multiple tables to get the result, and we mapped

Tagged with: , ,
Posted in MyBatis

Simple Example of Mybatis JAVA Maven Implementation 4 – Collection

Previous Example Next Example Other Mybatics Examples/Topics We are going through a simple example to show how to manage and implement one to many relationship. We have used an entity Category, let’s introduce another entity Product. 1. Here is the

Tagged with: , , , ,
Posted in MyBatis

Simple Example of Mybatis JAVA Maven Implementation 3 – How java interface and xml interface are connected

Simple Example of Mybatis JAVA Maven Implementation Simple Example of Mybatis JAVA Maven Implementation 2 Simple Example of Mybatis JAVA Maven Implementation 3 – How java interface and xml interface are connected We will go through the analysis and talk

Tagged with: , , , , ,
Posted in MyBatis