Blog Archives

Simple Example of Mybatis JAVA Maven Implementation 8 – Customized Type Handler

In the following example, we will show how to write a customized type handler. The type handler is a mybatis feature to allow you to intercept and update the information before the information is committed to the database, and/or after

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

Simple Example of Mybatis JAVA Maven Implementation 2

Previous Example Next Example All Mybatics Examples/Topics We will continue with the first simple JAVA mybatis example. In this example, we will first remove the hard-coded database access information from the database-config.xml file, and have the information fed in from

Tagged with: , , , , , ,
Posted in MyBatis

Simple Example of Mybatis JAVA Maven Implementation

Next Example All Mybatics Examples/Topics Mybatis is a powerful and flexible persistent framework. One of the advantage of it, compared to Hibernate, is that you don’t have to pick up new script language. You still create the sql, as you

Tagged with: , , , , , ,
Posted in MyBatis