Do you want to prevent "users" from querying, or other developers? If it's users, then that kind of securiity should come at a higher level, if it's developers, then what's the point? They can query the database directly, if they want to.
2014-07-16 18:33 GMT+02:00 Ricardo Peres <[email protected]>: > I don't think you can do that easily. Maybe using interceptors? > > RP > > > On Wednesday, July 16, 2014 12:07:57 PM UTC+1, Theeranit Pongtongmuang > wrote: >> >> My idea is that I want to know entity and mapping class from HQL query. >> >> >> For example if I have. User.cs for Entity and UserMap.cs for Mapping of >> User.cs >> >> Then I query with HQL like this> >> >> >> var hql = session.CreateQuery("FROM User"); >> >> >> How can I know this query run against User.cs and UserMap.cs mapping. >> This is because I want to prevent user for query some of entity. >> >> >> Thank you so much. >> > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
