"Could not determine a type for class"but the message does not end there
2009/9/25 Graham Bunce <[email protected]> > > All, > > Unfortunately I haven't been able to reproduce this to create a > failing test but I had the following error with NH 2.1.0GA: > > "Could not determine a type for class" > > where the reported class was an Interface declaration. > > A snip of the mapping file is: > > <?xml version="1.0" encoding="utf-8" ?> > <hibernate-mapping > xmlns="urn:nhibernate-mapping-2.2" > namespace="Entities" > assembly="Domain" > default-access="field.camelcase-underscore" > default-lazy="true"> > <class name="Device" > proxy="Domain.Interfaces.Entities.IDevice, > Domain.Interfaces" > table="[Device]"> > .. > .. > </class> > </hibernate-mapping> > > HQL that caused the error was: > > SELECT t FROM Transaction AS t WHERE t.Action = :action AND > t.DateTimeStamp >= :startDate AND t.DateTimeStamp < :endDate AND > t.Device.Id IN ({0}) ORDER BY t.DateTimeStamp DESC" > > We replace {0} with a fixed length IN statement. > > > Has anybody any ideas what can cause this? If I can get a failing test > I will, but the above HQL does usually work. It was this one time that > it failed. Any pointers as to what NH is doing so I can come up with a > test case would be helpful. > > Thanks, > Graham > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
