Questions tagged [spring-mybatis]
527 questions
0
votes
0 answers
Oracle - MyBatis Insert statement with auto increment id
Oracle Version: 10g.
in my Mapper.xml
SELECT AUTO_INCR.nextVal from dual;
INSERT INTO…

John Tan
- 65
- 9
0
votes
2 answers
Throw exception on missing @Transactional with Spring and MyBatis
I am trying to set up my web app that uses Spring and MyBatis.
Here are the important snippets of code.
Maven dependencies in pom.xml:
...
org.springframework
…

Cimlman
- 3,404
- 5
- 25
- 35
0
votes
1 answer
Camel-Mybatis Open session Exception
I'm using Camel-Mybatis version 2.12.0.redhat-610379, when we trying to start the bundle thru karaf container the following exception throws. Please advice.
org.apache.ibatis.exceptions.PersistenceException:
Error opening session. Cause:…

salz
- 81
- 12
0
votes
1 answer
MyBatis collection property
I have following tables:
CREATE TABLE users (
id VARCHAR (255) NOT NULL,
name VARCHAR (255) NOT NULL,
create_date TIMESTAMP NOT NULL,
email VARCHAR (255) NOT NULL,
password VARCHAR (255) NOT NULL,
last_visit TIMESTAMP,
avatar_id…

Mykola Yashchenko
- 5,103
- 3
- 39
- 48
0
votes
1 answer
mybatis integer data update, no effect
public int createCountry(String countryCode) {
// TODO Auto-generated method stub
SqlSession session = null;
boolean commit = false;
int result = 0;
//System.out.println("바보 :" + countryCode);
try {
session =…

정동구
- 1
0
votes
1 answer
How to Pass Array to String to IN Clause Using MyBatis annotation
I am using below Code Snippet for IN clause using Mybatis annotation.I am not getting any exception on execution but it returns 0 rows.
Please help me on this.
@Select("SELECT A.* FROM RPRT_HDR A,SCHL_MSTR B WHERE A.SCHL_ID=B.SCHL_ID AND…

mpmanikandann
- 9
- 4
0
votes
1 answer
spring boot with mybatis, run mvn package war will occur Invalid bound statement (not found)
I have built a project with spring boot and mybatis, it run in eclipse successfully, but when I mvn clean package and execute java -jar yishi-service.war it occured a Exception:
[http-nio-8080-exec-1] ERROR c.j.yishi.service.PageViewService -…

vincent ren
- 89
- 1
- 5
0
votes
1 answer
How to handle Like operator in MyBatis when a bind variable is null
Problem with the following code when bind variable is NULL:
How to handle Like operator in MyBatis when a bind variable is null?

akreddy.21
- 626
- 3
- 8
- 21
0
votes
2 answers
How can I configure mybatis db connection in spring boot?
I have myBatis xml config SqlMapConfig.xml
…

user5620472
- 2,722
- 8
- 44
- 97
0
votes
1 answer
MyBatis and Sybase Stored Procedure - ResultSet with unnamed columns
I am trying to map the ResultSet of a Sybase Stored Procedure using MyBatis, but I am experiencing some problems with unnamed columns on it.
The procedure returns a single row with 4 columns, 2 of which have no name at…
0
votes
2 answers
How can I convert mybatis setting to java base config
Yeah, I mean pure java. I have my mybatis configed like this. Now most of my project is using java base config but mybatis.

Gabriel.ge
- 168
- 3
- 15
0
votes
2 answers
MyBatis Springs Oracle Stored Procedure
I have been working on Spring application where I am working with MyBatis:
Consider I am having a Oracle Stored Procedure:
CREATE OR REPLACE PROCEDURE getDBUSERByUserId(
p_userid IN DBUSER.USER_ID INTEGER,
o_username OUT DBUSER.USERNAME…

Donk Cooper
- 13
- 4
0
votes
0 answers
Use Mybatis get sequence not follow squences
I use Mybatis get postgreDB sequences
The import_order_seq set
"Increment By" 1
"Max value" 9999
"Min valu" 1
"Cache Value" 20
the Mybatis xml

Brian
- 3
- 3
0
votes
1 answer
how will I erase or to make the border invisible of the cell that I completed using table.completeRow()
this is my code where I make an invisible border for the Merchant Column and complete the row, the Merchant column has no border, but the rest of the row had, I don't know to make it invisible.
PdfPCell cellMerchantTitle = rowCellStyle("Merchant",…

JerVi
- 131
- 3
- 14
0
votes
1 answer
MyBatis data querying issues
Here's a sample code:
@Results(
id = "displayData", value = {
@Result(property = "Caller", column = "c.CALLER"),
@Result(property = "Event", column = "t.RECORD_TEXT"),
@Result(property = "Receiver", column =…

Arthur Markus
- 13
- 1
- 3