Questions tagged [ibatis]

iBatis is an object-relational mapping framework for Java. It uses XML descriptors to bridge SQL queries and Java objects. An official port was created for the Microsoft .NET framework.

Apache retired iBatis in June 2010 and it is now developed under the 'MyBatis' name.

Useful links

1073 questions
0
votes
1 answer

Java Quartz Ibatis Cron Issues

I have a java webapp using an ibatis row handler to load a very large dataset (1 million rows in an innodb table). The process is run as a nightly cron job by quartz scheduler. However, after it processes for 6 minutes, it dies with the following…
David
  • 1,097
  • 5
  • 20
  • 34
0
votes
1 answer

mybatis configuration with spring3

I am trying to configure mybatis with spring 3. I am getting the following error while building my project. Error creating bean with name 'datasource' defined in ServletContext resource [/WEB- INF/spring-servlet.xml]: Error setting property…
Harry
  • 4,705
  • 17
  • 73
  • 101
0
votes
1 answer

Trying to read mutiple cursor values in MyBatis and setting these values in DTO but getting error

I am trying to read multiple cursor values in MyBatis and setting these values in DTO but getting an error. My SP returns 3 cursors and each cursor value I am trying to map with one DTO. Code follows AccountDSSpMapper.xml
0
votes
4 answers

ibatis dynamic sql using two conditions

I would like to use a dynamic sql statement that executes only when the variable is not null AND greater than zero. Like this:
anthonybell
  • 5,790
  • 7
  • 42
  • 60
0
votes
1 answer

Mapping to Dictionary with iBATIS

Given a simple statement, such as: SELECT * FROM Products Is it possible to get a list of dictionary objects where the keys are the column names? ie. var list =…
Andrew
  • 1,494
  • 1
  • 17
  • 27
0
votes
2 answers

ibatis ibator Java code generation problem

I use ibator eclipse plugin 1.2.1. My RDBMS is MySQL 5.1. I have a ibator config file as shown below:
Gok Demir
  • 1,404
  • 4
  • 21
  • 40
0
votes
3 answers

MyBatis: "Compile-time" mapper params replacement, keeping prepared stmt but making table names configurable?

MyBatis 3.1.1 allows either #{...} for prepared statements params, or ${...} for every-time replacement. I am missing something what would allow to parametrize parts of the SQL statement but still keep it prepared statement; i.e. replace during…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
0
votes
1 answer

Mutualy owned bi directional relations (friends)

I am writing an ORM. I am curious how friend relations are generally modeled. Are they duplicated relations in a link table with each user an owner of his friend relations, or is there an introduction of a mutually owned relation, where the orm…
MetaChrome
  • 3,210
  • 6
  • 31
  • 48
0
votes
3 answers

What are some good persistance libraries for .NET?

I come from a Java background and am getting more into .NET, what are some good libraries to use in my DAO layers? I'm used to using MyBatis (this appears to exist but not in a real full release). I've used Hibernate, which apparently exists in…
Rocky Pulley
  • 22,531
  • 20
  • 68
  • 106
0
votes
1 answer

spring Ibatis Mysql ReplicationDriver

i had use the spring3.1 ibatis2.x and mysql5.5. then i wanna use the replication driver . my code is:
zt9788
  • 948
  • 4
  • 16
  • 31
0
votes
1 answer

is it possible to pointcut on a third party class and how?

I use spring and ibatis in my project, here is my question. I want to trace all changes like add/update/delete and log them into table T_TRACE_LOG. The table has columns: operation_type, object_type, log_content, log_date. Here is an example…
justin.xxt
  • 11
  • 2
0
votes
1 answer

Multiple "DB operations" within iBatis [+Spring] Transaction

How do I achieve the Transaction involving multiple DB operations to >1 tables using iBatis & Spring? Let me explain in detail: I have 2 tables A & B with Master-details relationship. [Both tables in single database]. /* Table A: */ a_id [Primary…
0
votes
1 answer

Using question mark in Java PreparedStatement

I send request http://xxxx.com/test/?app_idx=80 via browser. But the ibatis parses this wrong. select CONCAT('http://localhost:8080/apps/icon/download/?app=', app_idx) from test where app_idx = ?; I expected my query to be select …
Patrick Jeon
  • 1,684
  • 5
  • 24
  • 31
0
votes
1 answer

Ibatis Spring Stored Procedure with Multiple OUT

Is it possible to implement a stored procedure call in oracle, which has more than 3 output (OUT) using Ibatis 2.3.4 integrated with Spring version 2.7, If possible please provide link for reference, Thanks in Advance
0
votes
1 answer

Can a Mybatis mapper XML configuration be included in another mapper configuration?

What I want to do is put various ... blocks in a Shared.xml file and then have more specific files include them. Something like this: mybatis-config.xml
jafwatt
  • 323
  • 4
  • 19