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
10
votes
1 answer

Saving/Updating collections with mybatis, what is the common practice?

I've decided to try and use mybatis for a new project. I'm decently familiar with SQL, and I've had some bad experiences with hibernate recently so I'm looking for a more low-level approach to DAO. Seems to be quite nice except for one thing, and…
Dytut
  • 317
  • 1
  • 4
  • 8
9
votes
1 answer

How to compare strings in mybatis 3 with if statement - dynamic sql

In myBatis 3 how do you compare a string when using dynamic sql? With iBatis previously you could do the following: order by p.portfolio_id Now with myBatis can you do the…
kkudi
  • 1,625
  • 4
  • 25
  • 47
9
votes
3 answers

Mybatis XML vs Annotation

I have read the book and documentation about Mybatis, both XML and Annotation does what I want, but from myBatis official website, they claim XML is a better way of doing Mappers, because Java annotation has limitations. I personally prefer…
user5324782
  • 177
  • 1
  • 1
  • 14
9
votes
2 answers

Why is iBATIS giving stale results, even with caching disabled?

I have a web application which I've been slowly migrating from iBATIS 2 to JPA with Spring Data. For the most part, things have been going well, with me just migrating the DAO for one domain object at a time. However, an issue that's been brought to…
pioto
  • 2,472
  • 23
  • 37
8
votes
5 answers

Passing multiple arguments into a SELECT without using a complex object

I am trying to pass in startSequenceId, stopSequenceId, orderNumber into the SQL map, however, i don't wish to use a typed object, i.e. parameterType="com.abc.Order", can i do so?