Re: 2 Way 1-1 relationship

2009-01-21 Thread Petr V.
old a reference of other side of relationship implicitly. Thanks, Petr --- On Wed, 1/21/09, Ingmar Lötzsch wrote: From: Ingmar Lötzsch Subject: Re: 2 Way 1-1 relationship To: user-java@ibatis.apache.org Date: Wednesday, January 21, 2009, 4:38 PM Petr V. schrieb: > I want to have two way rela

2 Way 1-1 relationship

2009-01-20 Thread Petr V.
I want to have two way relationship like Teacher contains reference of Student and Student contains reference of Teacher. Is it even possible in iBatis ? class Teacher {      Student sid; } class Student {      Teacher teacher; } I wrote the following SQL config file an

Re: Composite 1-1 Relationship

2009-01-20 Thread Petr V.
ersion. On Tue, Jan 20, 2009 at 3:42 PM, Petr V. wrote: > I strictly followed the steps at > http://ibatisnet.sourceforge.net/DevGuide/ar01s03.html#d0e1036 but no luck. >

Re: Composite 1-1 Relationship

2009-01-20 Thread Petr V.
1-20 14:34:39,457 [main] DEBUG java.sql.PreparedStatement  - {pstm-11} Types: [java.lang.Integer] 2009-01-20 14:34:39,473 [main] DEBUG java.sql.ResultSet  - {rset-12} ResultSet Thanks, Petr --- On Wed, 1/21/09, Petr V. wrote: From: Petr V. Subject: Composite 1-1 Relationship To: user-java@iba

Composite 1-1 Relationship

2009-01-20 Thread Petr V.
This is a very basic problem, and I have tried many combination but it is not working at all. I have two table , let assume, there is 1-1 relationship for simplification of problem at hand Teacher(id, name) Student(id,name,teacher_id) The two beans are public class Teacher {     private Int

Re: SQL Mapping is not working

2009-01-16 Thread Petr V.
ject: Re: SQL Mapping is not working To: user-java@ibatis.apache.org Date: Saturday, January 17, 2009, 12:19 AM Make certain you register your type handler in you SQL Map Config file, similar to as follows:   Chris Mathrusse christopher.mathru...@sybase.com Sybase, Inc One Sybase Drive Dubli

Re: SQL Mapping is not working

2009-01-16 Thread Petr V.
cuteUpdate(MappedStatement.java:94)     ... 32 more Thanks, Petr --- On Fri, 1/16/09, Ingmar Lötzsch wrote: From: Ingmar Lötzsch Subject: Re: SQL Mapping is not working To: user-java@ibatis.apache.org Date: Friday, January 16, 2009, 1:58 PM Petr V. schrieb: > Any idea what is going on ? :-( It is straight

Re: Java.util.calendar to SQLType ??

2009-01-16 Thread Petr V.
15, 2009 at 10:13 PM, Petr V. wrote: Database schema has column of type Timestamp . Java POJO has corresponding property defined as java.util.Calendar Result Map is defined as     I understand, I would have to define typeHandler to convert jdbc type to java Calendar. I am wondering

SQL Mapping is not working

2009-01-15 Thread Petr V.
Any idea what is going on  ? :-( It is straight forward code ==         == TypeHandler is public class JobStatusEnumTypeHandlerCallback implements TypeHandlerCallback  {     /**      *      * @par

Java.util.calendar to SQLType ??

2009-01-15 Thread Petr V.
Database schema has column of type Timestamp . Java POJO has corresponding property defined as java.util.Calendar Result Map is defined as     I understand, I would have to define typeHandler to convert jdbc type to java Calendar. I am wondering what should I define jdbcType is my sql map,

Abator Code Generation for Whole Schema

2008-12-02 Thread Petr V.
Hi, I just downloaded Abator tool and was able to generate code . But I have 100+ tables and project is in development stage so it would be really hard to maintain the abatorConfig.xml file. I can only specify one table at a time. Would it mean I do need to create one config file for each table,