|
Hibernate: 2.1
IDE: IBM WebSphere Studio Application Developer 5.0
DB: IBM DB2
I have a db which has many tables. Most tables works fine, but there is one table which has 36 columns failed.
I wrote a Table.java(JavaBean) to map the table and a Service.java to handle the select, update, insert function.
After I new Table() and set the value of primary key, then I use Service.getInstance().add(table)
I got the error [Index: 0, Size: 0]: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
I checked the console, and I could see the sql "insert into table(...) vlaues(?,?...)" before the error.
Actually, I didn't use any array in my program. I infer the error is in session.save(table). But I couldn't figure it out.
Does anyone have an idea?
Thanks a lot ...
|