mybatis
How to return key after insert using MyBatis when the id/uuid as is stored as binary?
we currently have triggers in our database that hand out uuid for every record that i insert. When i am inserting records with mybatis i would like to get that 开发者_开发技巧uuid back instead of the[详细]
2023-03-30 19:43 分类:问答How to use transactions with Spring/MyBatis? Best practice?
I am trying to use transactions with MyBatis and Spring and was wondering if there is a best practice on how to achieve this? Any hints or thoughts are appreciated.[详细]
2023-03-30 10:33 分类:问答MyBatis executing multiple sql statements in one go, is that possible?
i was wondering if it is possible to execute multiple sql statements in 1 go. For example the scenario that i want to delete rows from multiple tables, is there a way i can do things like..[详细]
2023-03-30 02:50 分类:问答Duplicate field names in different tables make the `SELECT` query complex in mybatis
I have some tables which all have a field named created_at, that\'s a timestamp to represent when the row inserted.[详细]
2023-03-28 15:57 分类:问答How can I integrate Oracle's row level security with MyBatis?
A project I am working on uses and Oracle database with row level security. I need to be able to invoke call DBMS_APPLICATION_INFO.SET_CLIENT_INFO(\'userId\'); before I can execute any other SQL state[详细]
2023-03-23 19:33 分类:问答How to configure Spring to make JPA (Hibernate) and JDBC (JdbcTemplate or MyBatis) share the same transaction
I have a single dataSource, I use Spring 3.0.3, Hibernate 3.5.1 as JPA provider and I use MyBatis 3.0.2 for some queries and my app runs on Tomcat 6. I have a HibernateDAO and a MyBatisDAO, when I cal[详细]
2023-03-22 04:10 分类:问答How to use dynamic SQL query in MyBatis with annotation(how to use selectProvider)?
I am trying to avoid having an additional xml to define the mapper in mybatis3. Annotation fits right in.[详细]
2023-03-20 07:27 分类:问答Adding where clauses from database
We are using MyBatis 3.0.3 & Spring 3.0.5 in our project. We are trying to implement data level security through a table which stores where clauses (userid < 200, active == true, ...).[详细]
2023-03-19 09:39 分类:问答Using Jquery ajax() call, Tomcat logs fall silent
I am trying to avoid a whole bunch of manual inspection to debug my code, even though the error will most likely turn out to be a mistype or something silly like that.I am making an ajax() call to a S[详细]
2023-03-18 20:19 分类:问答For a new project using Spring with JDBCTemplates, iBatis/myBatis or Hibernate?
Hi there we are starting a project in which we have to make the decision between using Spring JDBCTemplates, iBatis/myBatis or Hibernate for our persistence layer. I am more or less familiar with the[详细]
2023-03-18 12:18 分类:问答