Here's another one: * You cannot do this in Criteria API with components; from MyEntity entity join SomeComponents component where component.MyProperty = :someVariable
On May 19, 7:20 pm, Dmitiry Nagirnyak <[email protected]> wrote: > So Criteria API and HQL have different implementations? > I thought they reuse the same infrastructure for generating SQL, mapping > entities etc. > I believe it should be true but probably not fully. > Am I right here? > > To choose "the right tool" we need to know what that tool can and cannot do. > So maybe you, guys, would be able to show couple of samples of what HSQ and > Criteria API can(not) do. > > Cheers. > > 2009/5/20 Fabio Maulo <[email protected]> > > > Criteria is for dynamic queries > > HQL is for static queries --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
