The problem is ... I can not get the correct mapping for my class role. The problem is ... I can not get the correct mapping for my role class. The mapping you suggested in your first reply does not bring what I want correctly, the parent he brings himself and the list is empty.
2013/10/9 Ricardo Peres <[email protected]> > Tiago, > > You are not explaining what the problem is. Do you have an exception when > building the session factory, or when querying, or doesn't the query bring > what you expected? Can you see the generated SQL? > > RP > > > On Tuesday, October 8, 2013 6:16:35 PM UTC+1, Tiago Azevedo wrote: >> >> I'll try to explain my situation, sorry if the formulation of the phrases >> get bad, I'm using a translator. >> >> I have a user that has a profile, this profile can be Administrator, >> Manager, Employee, etc.. Each profile has a list of roles and each role >> represents an access to a certain page. Each role has a list of other >> roles. The roles forms a hierarchical tree structure(See image below). >> >> >> <https://lh4.googleusercontent.com/-QD-a5q-qixE/UlQ8wsC1K1I/AAAAAAAAAVc/IzBh1g9mD_I/s1600/TriStateTreeView.png> >> What I need is to set classes and mappings. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "nhusers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/nhusers/qIJlAN0vuXM/unsubscribe. > To unsubscribe from this group and all its topics, 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/groups/opt_out. > -- Tiago Azevedo Borges Goiânia - Goiás -- 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/groups/opt_out.
