cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject Re: Show the SQL that will be generated by an EJBQLQuery?
Date Tue, 16 Aug 2016 19:18:03 GMT
You still get an A+ for effort, Michael :). The code Andrus provided worked great, so thanks
once again Andrus!

Here’s the result, for future reference:

https://gist.github.com/hugith/95b2dddd94d9f04e219ada75810c0f62

Cheers,
- hugi


> On 16. ágú. 2016, at 16:41, Michael Gentry <mgentry@masslight.net> wrote:
> 
> Hmm, for some reason Andrus' email hadn't come in before I typed mine up.
> His looks better than mine.  :-)
> 
> 
> On Tue, Aug 16, 2016 at 12:38 PM, Michael Gentry <mgentry@masslight.net>
> wrote:
> 
>> Hi Hugi,
>> 
>> I've not done anything with EJBQL yet, but have you looked at this class?
>> 
>> https://github.com/apache/cayenne/blob/master/cayenne-
>> server/src/main/java/org/apache/cayenne/access/translator/ejbql/
>> EJBQLTranslationContext.java
>> 
>> Perhaps it will give you a starting point.
>> 
>> mrg
>> 
>> 
>> On Tue, Aug 16, 2016 at 11:36 AM, Hugi Thordarson <hugi@karlmenn.is>
>> wrote:
>> 
>>> Hi all,
>>> since I want to try to do a little work on EJBQL in Cayenne; is there any
>>> way for me to generate and look at the SQL that will be generated by an
>>> EJBQLQuery without actually submitting it to the DB?
>>> 
>>> Cheers,
>>> - hugi
>>> 
>>> // Hugi Thordarson
>>> // http://www.loftfar.is/
>>> // s. 895-6688
>>> 
>>> 
>>> 
>>> 
>> 


Mime
View raw message