Hi –
I am new to Ibatis and I have run into an issue regarding inserts into a
table. I am getting the following error when I attempt to insert data into a
table:
DEBUG [main] - Checked out connection 14247087 from pool.
DEBUG [main] - ooo Connection Opened
DEBUG [main] - ==> Executing: insert i
What's the return type of the mapper method?
Clinton
On Sun, Jan 31, 2010 at 3:03 PM, ChippyJoey wrote:
>
> Hi –
>
> I am new to Ibatis and I have run into an issue regarding inserts into a
> table. I am getting the following error when I attempt to insert data into
> a
> table:
>
> DEBUG [main
Clinton -
Here is the Key mapper interface definition:
package com.catalog.model.dao;
import java.util.List;
import com.catalog.model.Key;
public interface KeyMapper {
Key insertKey(Key key);
Key selectKey(int keyid);
List selectKeys();
}
Currently, I have
Right... insert cannot return type Key. It must return an integer, which is
the number of rows inserted.
Clinton
On Sun, Jan 31, 2010 at 7:00 PM, Chip Owen wrote:
> Clinton –
>
>
>
> Here is the Key mapper interface definition:
>
>
>
> package com.catalog.model.dao;
>
>
>
> import java.util.L
Hi,
Can we store the composite objects using iBATIS.
e.g. consider the following tables.
employee (emp_id, name, department_id)
department(department_id, name, location)
project(project_id, name, client_name)
employee_project(emp_id, project_id)
One employee will belong to one and only one dep