cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lachlan Deck <lachlan.d...@gmail.com>
Subject Re: NamedQuery / SQLTemplate keyPath validation
Date Tue, 10 Jun 2008 08:05:49 GMT
On 10/06/2008, at 6:02 PM, Andrus Adamchik wrote:

> Unlike SQLTemplate, EJBQL operates in object terms, abstracted from  
> SQL (this is why I said earlier that it is similar to SelectQuery).  
> So it is free from the constraints that I mentioned and you can do  
> something like this:
>
> String ejbql = "SELECT count(a) FROM Artist a WHERE " +  
> expression.toEJBQLString("a");

Just sent my email with this question exactly... thanks!

with regards,
--

Lachlan Deck




Mime
View raw message