ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: Auto-generated keys using Sybase
Date Mon, 11 Jul 2005 14:25:57 GMT
You should escape the $, when using $$ iBATIS should skip it.

-----Original Message-----
From: German Gonzalez [mailto:german.gonzalez@gmail.com] 
Sent: maandag 11 juli 2005 16:25
To: user-java@ibatis.apache.org
Subject: Re: Auto-generated keys using Sybase

I have a similar problem, but with firebird db.

I use the following query to get a key from a trigger.


but I get:
 com.ibatis.common.beans.BeanException: There is no READABLE property
named 'database   ' in class

that it seems ibatis parses "$database" as a property, and the problem
is that query is the only way to call that generator.


German Gonzalez

On 6/14/05, Engel, Gregory A <GAEngel@tribune.com> wrote:
> I'm using Sybase here and it is the same as MS SQL Server
> I do this inside the insert.
>         <selectKey resultClass="long" keyProperty="id">
>                 SELECT @@identity as id
>         </selectKey>
> Straight from the help files....

View raw message