<import class="fullclassname, namespace" /> before the <class tag

Gustavo.

On Tue, Dec 9, 2008 at 2:03 PM, Utopico <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> I am trying to get this HQL query:
> SELECT r.LogTime, v.Value FROM DataRecord as r, DataValue as v WHERE
> v.DataRecord = r AND r.Device = ? AND v.Type = ? AND r.LogTime >= ?
> ORDER BY r.LogTime
>
> converted to:
> SELECT new TimeValueRecord(r.LogTime, v.Value) FROM DataRecord as r,
> DataValue as v WHERE v.DataRecord = r AND r.Device = ? AND v.Type = ?
> AND r.LogTime >= ? ORDER BY r.LogTime
>
> When I do this I get an exception "Class not found : TimeValueRecord".
>
> I use hibernate attributes on my classes (so no hbm files).
>
> From what I can understand I need an import for the TimeValueRecord,
> but I have not been able to figure out how.
>
> How do I get this to work?
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to