sent it too early... (I need an "edit" button)
I have User and Role "objects" which are only DAO so there is no ISet
of either of them within the other. There is a user_role table which
holds the user_id and role_id and thus defines the relationship.
Is there any way to query on them without introducing the link as an
entity... i.e. I want to be able to say something like this... but
without introducing the RoleItemUserItemMap as an entitiy of it's own
public RoleItem[] GetRolesForUser(UserItem user){
IList<RoleItem> roleItems =
session.CreateQuery("select role from RoleItem
role,RoleItemUserItemMap ar where role.Id = ar.RoleId and ar.UserId
=:appUserId")
.SetInt32("appUserId", user.Id).List<RoleItem>
();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---