With criteria, you can only fetch entities, not update them in a batch. HQL allows that, but you need to access the ISession directly for it. -Markus
2009/10/21 Bruno Leitão de Oliveira <[email protected]> > > I have a entity Project like this: > > class Project { > long id { get; set; } > long id_parent { get; set; } > long name { get; set; } > } > > how can I update the name of all Projects where id_parent = 1 with > DetachedCriteria > > Ps.: with only 1 sql example: update tb_project set name='hello' where > id_parent = 1 > > AR with NH 2.0 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
