PacktLib: Java Persistence with MyBatis 3

Java Persistence with MyBatis 3

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Getting Started with MyBatis

What is MyBatis?

Why MyBatis?

Installing and configuring MyBatis

Sample domain model

Summary

Bootstrapping MyBatis

Configuring MyBatis using XML

Configuring MyBatis using Java API

Customizing MyBatis logging

Summary

SQL Mappers Using XML

Mapper XMLs and Mapper interfaces

Mapped statements

ResultMaps

Dynamic SQL

MyBatis recipes

Summary

SQL Mappers Using Annotations

Mapper interfaces using annotations

Mapped statements

Result maps

Dynamic SQL

Summary

Integration with Spring

Configuring MyBatis in a Spring application

Working with SqlSession

Working with mappers

Transaction management using Spring

Summary

Index