How to store composite object

2010-01-31 Thread CRCVY
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

Re: Ibatis 3 Insert Error

2010-01-31 Thread Clinton Begin
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

RE: Ibatis 3 Insert Error

2010-01-31 Thread Chip Owen
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

Re: Ibatis 3 Insert Error

2010-01-31 Thread Clinton Begin
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

Ibatis 3 Insert Error

2010-01-31 Thread ChippyJoey
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