163java
About 43 results
  1. Is there a way to get the DatabaseMetaData object from a Mybatis connection?

    http://stackoverflow.com/questions/32723789/is-there-a-way-to-get-the-databasemetadata-object-from-a-mybatis-connection
    up vote 0 down vote favorite In other words I want an equivalent of this for Mybatis DatabaseMetaData metadata = connection.getMetaData(); mybatis spring-mybat
  2. How to get primary keys after batch insert in MyBatis

    http://stackoverflow.com/questions/31847521/how-to-get-primary-keys-after-batch-insert-in-mybatis
    up vote 2 down vote favorite use annotation @Options(useGeneratedKeys = true, keyProperty = "id") to get the generated primary key for single insert is fine for
  3. Mybatis statement with Map parameterType, how to refer to Map directly?

    http://stackoverflow.com/questions/22370266/mybatis-statement-with-map-parametertype-how-to-refer-to-map-directly
    up vote 0 down vote favorite I am passing a Map of parameters into a Mybatis select template: <select id="summary" parameterType="java.util.Map" resultMap='bas
  4. MyBatis的动态SQL操作--更新

    http://www.cnblogs.com/winner-0715/p/5314560.html
    2016年03月24日 - 更新条件不确定,需要根据具体的情况生成sql语句. id是主键,一般不会去更新。 1.只更新name的值 update student set name = ? where id = ? 2.只更新sal的值 update student set sal = ? where id = ? 3.同时更新name和sal的
  5. sql - how to make mybatis insert uncertain table and columns

    http://stackoverflow.com/questions/33626648/how-to-make-mybatis-insert-uncertain-table-and-columns
    up vote 0 down vote favorite what I want is just like insert into #{tableName} (#{tableColumn1}, ...) values (#{value1}, ... ) in mapper.xml if I but it went
  6. Mybatis collection with multiple columns

    http://stackoverflow.com/questions/34825714/mybatis-collection-with-multiple-columns
    up vote 1 down vote favorite 1 I have a table which has three foreign keys to items. These corresponding objects I want in a list property. I have the following
  7. mybatis入门基础(九)----逆向工程

    http://www.cnblogs.com/selene/p/4650863.html
    2015年07月16日 - 一、什么是逆向工程         mybaits需要程序员自己编写sql语句,mybatis官方提供逆向工程 可以针对单表自动生成mybatis执行所需要的代码(mapper.java,mapper.xml、po..)       实际开发中,常用的逆向工程方式:由数据库的表生成java代码。 二、下载逆向工程   
  8. MyBatis的几种批量操作

    http://www.cnblogs.com/dreammyle/p/5405463.html
    2016年04月18日 - MyBatis中批量插入 方法一: <insert id="insertbatch" parameterType="java.util.List"> <selectKey keyProperty="fetchTime" order="BEFORE" resultType="java.lang.String">
  9. spring事务源码分析结合mybatis源码(二)

    http://www.cnblogs.com/lcxdever/p/4579126.html
    2015年06月15日 - 让我们继续上篇,分析下如果有第二个调用进入的过程。 代码部分主要是下面这个: if (isExistingTransaction(transaction)) { return handleExistingTransaction(definition, transaction, debugEna
  10. java - Multithreading in single transaction spring+mybatis

    http://stackoverflow.com/questions/21136577/multithreading-in-single-transaction-springmybatis
    up vote 0 down vote favorite i'm trying to perform update operation in single transaction with multiple threads includes main thread, but in case of failures it