03 2016 档案
Eclipse - 安装 run-jetty-run 插件及使用 jrebel 热部署
摘要:1. 下载 run-jetty-run  2. 解压至 Eclipse/MyEclipse 安装目录下的 plugin 3. 右键 web 项工程,选择 Run Configurations,选择 Jetty Webapp, 然后点击左上方的新建按钮。可以修改 Port 和 Context 参数。点 阅读全文
posted @ 2016-03-15 15:44 huey2672 阅读(808) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Integration with Spring
摘要:MyBatis-Spring is a submodule of the MyBatis framework, which provides seamless integration with the popular dependency injection framework, Spring. 1 阅读全文
posted @ 2016-03-02 16:56 huey2672 阅读(495) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Cache
摘要:Caching data that is loaded from the database is a common requirement for many applications to improve their performance. MyBatis provides in-built su 阅读全文
posted @ 2016-03-02 10:27 huey2672 阅读(249) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Custom ResultSet processing using ResultSetHandler
摘要:MyBatis provides great support with plenty of options for mapping the query results to JavaBeans. But sometimes, we may come across scenarios where we 阅读全文
posted @ 2016-03-01 17:52 huey2672 阅读(2465) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Paginated ResultSets using RowBounds
摘要:Sometimes, we may need to work with huge volumes of data, such as with tables with millions of records. Loading all these records may not be possible 阅读全文
posted @ 2016-03-01 17:10 huey2672 阅读(635) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Multiple results as a map
摘要:If we have a mapped statement that returns multiple rows and we want the results in a HashMap with some property value as the key and the resulting ob 阅读全文
posted @ 2016-03-01 17:05 huey2672 阅读(506) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Passing multiple input parameters
摘要:MyBatis's mapped statements have the parameterType attribute to specify the type of input parameter. If we want to pass multiple input parameters to a 阅读全文
posted @ 2016-03-01 17:00 huey2672 阅读(565) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Handling the CLOB/BLOB types
摘要:MyBatis provides built-in support for mapping CLOB/BLOB type columns. Assume we have the following table to store the Students and Tutors photographs 阅读全文
posted @ 2016-03-01 16:45 huey2672 阅读(1226) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Handling enumeration types
摘要:MyBatis supports persisting enum type properties out of the box. Assume that the STUDENTS table has a column gender of the type varchar to store eithe 阅读全文
posted @ 2016-03-01 16:33 huey2672 阅读(379) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Dynamic SQL
摘要:Sometimes, static SQL queries may not be sufficient for application requirements. We may have to build queries dynamically, based on some criteria.For 阅读全文
posted @ 2016-03-01 16:05 huey2672 阅读(1416) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - One-to-many mapping
摘要:In the sample domain model, a tutor can teach one or more courses. This means that there is a one-to-many relationship between the tutor and course. W 阅读全文
posted @ 2016-03-01 14:30 huey2672 阅读(1572) 评论(0) 推荐(1) 编辑
MyBatis(3.2.3) - One-to-one mapping using nested Select
摘要:We can get Student along with the Address details using a nested Select query as follows: <resultMap type="Address" id="AddressResult"> <id property=" 阅读全文
posted @ 2016-03-01 14:13 huey2672 阅读(375) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - One-to-one mapping using nested ResultMap
摘要:We can get Student along with the Address details using a nested ResultMap as follows: <resultMap type="Address" id="AddressResult"> <id property="add 阅读全文
posted @ 2016-03-01 11:51 huey2672 阅读(938) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - ResultMaps: Extending ResultMaps
摘要:ResultMaps are used to map the SQL SELECT statement's results to JavaBeans properties. We can define ResultMaps and reference this resultMap query fro 阅读全文
posted @ 2016-03-01 11:07 huey2672 阅读(312) 评论(0) 推荐(0) 编辑
MyBatis(3.2.3) - Mapped statements: The INSERT statement, Autogenerated keys
摘要:We can use the useGeneratedKeys and keyProperty attributes to let the database generate the auto_increment column value and set that generated value i 阅读全文
posted @ 2016-03-01 10:19 huey2672 阅读(353) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示