Problem with Complex Property

2007-04-30 Thread oci
I have a problem while using complex properties. Here is my code :

Re: Problem with Complex Property

2007-04-30 Thread Zoran Avtarovski
Isn't your select statement only returning distinct profil values. You need to include the id and droits columns in order for your config to work. Z. > > I have a problem while using complex properties. Here is my code : > > class="Utilisateur.classe"> > > > > > > > > > > select="Pro

Re: Problem with Complex Property

2007-04-30 Thread oci
In fact, idProfil refers to the field id in the table profil : table "utilisateur": id login password ... idProfil table "profilutilisateur" : id profil droits idProfil refers to profilutilisateur.id I have tried what your solution and it works with this request : SELECT DIS

Abator generates Inserts NULL into DB2 Indentity columns causes problem

2007-04-30 Thread Antony Stubbs
The SQL that Abator generates try's to insert null into my identity columns (eg car_id) which are auto-generated and 'not nullable'. DB2 doesn't like this, and throws and exception about putting null into non-null columns. To get around it i've been deleting from the generated sql's insert statem

Re: Abator generates Inserts NULL into DB2 Indentity columns causes problem [solved]

2007-04-30 Thread Antony Stubbs
Whoops - my bad: http://ibatis.apache.org/docs/tools/abator/configreference/generatedKey.html Seems to behave nicely now :) "The Element The element is used to specify properties for auto generated keys (from identity field or sequences). If you specify this element, Abator will generate an

Using DataDirect Embedded Driver with iBatis

2007-04-30 Thread Ashok Madhavan
Hi all, I am using iBatis. it works great and i love it. in my project i need to use a embedded ( branded ) driver from data direct. Does iBatis support these embedded JDBC connections. this link provides more information http://www.datadirect.com/support/oem_embedding/index.ssp Quoting from t

Re: Using DataDirect Embedded Driver with iBatis

2007-04-30 Thread Larry Meadors
Yeah, it'll work. You may need to do a little plumbing, but it shouldn't be too difficult. My guess is that you'll need to create a data source / data source factory, and make your required function call there. I think I'd use a proxy on an existing data source implementation. Larry On 4/30/07

Re: Using DataDirect Embedded Driver with iBatis

2007-04-30 Thread Ashok Madhavan
thanks Larry. i will try it out in a day or two. regards ashok On 4/30/07, Larry Meadors <[EMAIL PROTECTED]> wrote: Yeah, it'll work. You may need to do a little plumbing, but it shouldn't be too difficult. My guess is that you'll need to create a data source / data source factory, and make