Building java project for ibatis learning
Introduction to ibatis
Ibatis is an open source project of Apache and an ORM solution. The biggest feature of ibatis is its small size and quick start.
Using the ORM mechanism provided by ibatis, business logic implementers face pure Java objects, which is basically consistent with the implementation of ORM through hibernate.
Ibatis is a persistence layer framework based on SQL mapping and supporting Java and ・ net. Compared with "one-stop" ORM solutions such as hibernate and Apache OJB, ibatis is a "semi-automatic" ORM implementation.
1、 Jar package dependency
ibatis-2.3. 4.726. jar
mysql-connector-java-5.0. 8-bin. jar
2、 Sqlmap properties
3、 Sqlmapconfig xml
4、 Student xml
5、 Java code
Entity class: omitted
Dao: omitted
DaoImpl:
summary
Through learning, we will find that there are really many contents in Hibernate system, and ibatis is easier to use, small and flexible. That's all about the ibatis java project. I hope it will be helpful to you.