cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject Generating SQL from an Expression (for use in a utility method)
Date Tue, 19 May 2015 15:21:01 GMT
Hi all.

I’m creating a little utility method to emulate functionality from EOF, i.e. to allow me
to fetch distinct values for specified columns. This is what I have so far:

https://gist.github.com/hugith/05de4ad2f3d6f2cdc16a <https://gist.github.com/hugith/05de4ad2f3d6f2cdc16a>

However, I would like to be able to provide an expression to the query. Does Cayenne have
something to generate the SQL from an expression for me?

Am I perhaps going totally wrong about this?

Cheers,
- hugi
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message