cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <>
Subject Re: Named query not working with parameters
Date Wed, 03 Mar 2010 14:22:08 GMT
SQLTemplate is SQL enchanced with Velocity-like templates (standard and
Cayenne-specific). Thus, any SQL can be performed. It will return you a map
(DataRow) if it is SELECT query (use setFetchingDataRows(true)), for
non-select queries use context.performGenericQuery()

2010/3/3 Sudheer <>

> I think SQLTemplate is designed to work on DataObject that is linked to a
> table. In my case, I am using query that is not mapped to DataObject or
> having direct table in database. Do you think SQLTemplate is possible on
> direct SQL query that is not DataObject or Table.
> --
> View this message in context:
> Sent from the Cayenne - User mailing list archive at


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message