You can't project on Entity or collection. Tuna Toksöz Eternal sunshine of the open source mind.
http://devlicio.us/blogs/tuna_toksoz http://tunatoksoz.com http://twitter.com/tehlike On Tue, Sep 1, 2009 at 3:53 PM, Eduardo Costa <[email protected]> wrote: > > This query is HQL > I need in criteria object > > On 1 set, 00:16, Fabio Maulo <[email protected]> wrote: > > select c from Parent p inner join p.Children c where p.Id = 9 and c.Id = > 33 > > You have a persistent-layer with 6 ways to write a query > > HQL > > Criteria > > H-SQL (mix of SQL with OO "tags") > > SQL (pure SQL) > > LINQ expression > > LINQ using extensions methods > > > > why use only one ? > > use what you know. > > > > 2009/8/31 Eduardo Costa <[email protected]> > > > > > > > > > > > > > People, > > > > > I don't know make this HQL query in Criteria object. Can someone help > > > me? > > > > > select c > > > from Parent p > > > inner join p.Children c > > > where p.Id = 9 > > > and c.Id = 33 > > > > > Tks. > > > > > Eduardo Costa > > > from Brazil > > > > -- > > 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 -~----------~----~----~----~------~----~------~--~---
