Questions tagged [ibatis.net]

iBATIS is a simple but complete framework that makes it easy to map objects to SQL statements or stored procedures.

iBATIS DataMapper couples objects with stored procedures or SQL statements using a XML descriptor. Simplicity is the biggest advantage of the iBATIS DataMapper over object relational mapping tools. To use iBATIS DataMapper you rely on your own objects, XML, and SQL.

54 questions
24
votes
4 answers

Too many parameters were provided in this RPC request. The maximum is 2100.?

A search query returned this error. I have a feeling its because the in clause is ginormous on a subordinant object, when I'm trying to ORM the other object. Apparently in clauses shouldn't be built 1 parameter at a time. Thanks ibatis.
DevelopingChris
  • 39,797
  • 30
  • 87
  • 118
15
votes
3 answers

How to serialize an IList?

I've got an OR mapper (iBatis.Net) that returns an IList. // IList QueryForList(string statementName, object parameterObject); var data = mapper.QueryForList(statement, parameters); I'm trying to use it in an webservice an want to…
Hinek
  • 9,519
  • 12
  • 52
  • 74
7
votes
2 answers

Reduce number of config files to as few as possible

For most of my applications I use iBatis.Net for database access/modeling and log4Net for logging. In doing this, I need a number of *.config files for each project. For example, for a simple application I need to have the following *.config…
5
votes
3 answers

What is the difference between NHibernate and iBATIS.NET?

I am looking for some up to date information comparing NHibernate and iBATIS.NET. I found some information searching Google, but a good bit of it applies either to the Java versions of these products or is dated. Some specific things I am…
Jeremy
  • 3,484
  • 3
  • 22
  • 25
5
votes
1 answer

Is there active development going on IBatis.Net DataMapper?

Is there active development going on IBatis.Net DataMapper? Do they have version for .Net 3.5. I saw lots of activity on iBatis Java DataMapper as they are planning to release iBatis3 with annotation support. What is the status of its .Net…
Amitabh
  • 59,111
  • 42
  • 110
  • 159
5
votes
8 answers

How do you map a List in iBatis?

I have a class like this public SomeClass { private List _strings = new List(); public IEnumerable Strings { { get return _strings; } } } How would I do the mapping for _strings? I tried this, but it…
Brandon
  • 68,708
  • 30
  • 194
  • 223
4
votes
2 answers

Java valueOf(int) with IntegerCache returns value 3 for valueOf(1)

I am facing problem with IntegerCache : Using iBatis data access framework which internally use iBatis PreparedStatement class. Calling database procedure like { call UPDATE_PROC(?,?,?,?,?,?) } with params : [123, 234, 345, TEST1, 567,…
PankajChandankar
  • 327
  • 3
  • 11
4
votes
2 answers

Can a query return only part of the results on a resultMap on Ibatis?

There is some code using Ibatis 2.3, and I have a class User and a resultMap as follows: public class User { private Integer id; private String name; public Integer getId() { return this.id; } public void setId(final Integer id) { …
Francisco
  • 41
  • 2
3
votes
2 answers

Best way to retrieve the connection string for IBATIS.NET from the web.config

I have an web application where I have a requirement to encrypt and store the connection string in the web.config. What is the best way to retrieve this and use this connection string with IBATIS.NET instead of storing the connection string in the…
Jon Cahill
  • 4,968
  • 4
  • 34
  • 31
3
votes
2 answers

Mybatis No Getter Property

I'm working with Mybatis 3.2.6 and implementing a custom resulthandler. I've done this before using a simple datatype parameter and have had no problems. This time around I need to pass in several arguments... The signature I'm using…
Floresj4
  • 110
  • 1
  • 1
  • 8
2
votes
0 answers

Handling Transactions in DAO with an Injected iBATIS.NET SQL Mapper

I am currently using iBATIS.NET for a small application I am building. I like to create concrete Classes for my DAOs instead of using ISqlMapper directly and invoking named SQL statements. I am not using a Dependency Injection container of any sort,…
9ee1
  • 1,078
  • 1
  • 10
  • 25
2
votes
1 answer

IBATIS - Stored procedure timeout

i have this procedure statement SP_InsertIOs
ion
  • 1,141
  • 3
  • 9
  • 9
2
votes
1 answer

ibatis.net - isqlmapper.BeforeQuery missing in 1.6.1

We are trying to upgrade to iBatis.Net DataMapper 1.6.1 (from 1.5.1). I am getting an error on this line: ( ( SqlMapDaoSession ) daoManager.GetDaoSession() ).SqlMap.BeforeQuery += new BeforeQueryDelegate ( SqlMap_BeforeQuery ); I cannot even find a…
MrJeepster
2
votes
1 answer

Is there a Query-Mapper like iBATIS.NET but with dirty tracking, lazy-loading and cascading updates?

The problem: A DBA-controlled database with a Stored Procedure-only mandate. An expectation that the domain be defined in POCO's. So I decided that I need an ORM designed for stored procedures and/or legacy databases. Ideally the ORM should allow…
user93202
2
votes
2 answers

iBatis.Net SQL Server Compact Edition 3.5

I want to migrate one of our databasis from SQL Server Express to SQL Server Compact 3.5. I'm using iBatis.Net but do not know what the providers.config must look like for me to be able to access SQL CE 3.5. Can anyone help me out with…
Johan
  • 21
  • 3
1
2 3 4