1 / 69
文档名称:

MyBatis 3.0 - User guide - [2011] [Official Doc].pdf

格式:pdf   页数:69页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

MyBatis 3.0 - User guide - [2011] [Official Doc].pdf

上传人:bolee65 2014/8/20 文件大小:0 KB

下载得到文件列表

MyBatis 3.0 - User guide - [2011] [Official Doc].pdf

文档介绍

文档介绍:MyBatis 3

User Guide
Warning about Copying Code from this Document
No, this is not a legal warning. It is one to help you keep your sanity. Modern word
processors do a great job of making text readable and formatted in an aesthetically
pleasing way. However, they also tend pletely ruin code examples by
inserting special characters, sometimes that look exactly the same as the one you
think you want. “Quotes” and hyphens are a perfect example –the quotes and
hyphen you see to the left will not work as quotes in an IDE or text editor, at least
not the way you intend.
So read this document, enjoy it and hopefully it is helpful to you. When es to
code examples, seek out the examples included with the download (including unit
tests etc.), or examples from the website or mailing list.


Help make this documentation better…
If you find this documentation lacking in any way, or missing documentation for a feature,
then the best thing to do is learn about it and then write the documentation yourself!
We accept public documentation contributions through our wiki at:
http://opensource./confluence/oss/display/IBATIS/Contribute+Documentation
You’re the best author of this documentation, people like you have to read it!
Contents
What is MyBatis? .......................................................................................................................................... 6
Getting Started .............................................................................................................................................. 6
Building SqlSessionFactory from XML ....................................................................................................... 6
Building SqlSessionFactory without XML .................................................................................................. 7
Acquiring a SqlSession from SqlSessionFactory ......................................................