http://jira.nhibernate.org/browse/NHMA-9;jsessionid=4034F5174E1D591698FEFE3B4F2E7B59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
On Tue, Dec 9, 2008 at 3:01 PM, Utopico <[EMAIL PROTECTED]> wrote: > > How would I do this when I do not use hbm files, but attributes on the > classes instead? > > > On 9 Des, 13:43, "Gustavo Ringel" <[EMAIL PROTECTED]> wrote: > > <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 -~----------~----~----~----~------~----~------~--~---
