cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Pb to cast Expression to ejbql string
Date Sun, 16 Mar 2008 21:15:47 GMT
Looks like a bug to me.

Andrus

On Mar 16, 2008, at 10:59 PM, Francois Eyl wrote:

> Hi all,
>
> I'm getting a strange behavior using expression and its toEJBQL  
> method.
>
> I'm using this to create my where close from a given Expression.  
> This works for me in many cases except for this sample :
>
> When I run the toString() method I get the following string (this is  
> ok) :
> scheduleId in (1, 2, 5, 6, 7, 8, 8, 10)
> But when I run the toEJBQL("s") I got the following string (this is  
> wrong) :
> s.scheduleId in ()
>
> So, It seems that when I cast my expression to EJBQL string,  
> parameters are lost (numbers from my IN close).
>
> Is it a normal behavior or a kind of bug ?
>
> Thanks
>


Mime
View raw message