In RBAC model,
Well-known , Role has the inherited characteristic. Now if I has four Role: R1,R2,R3 and R4. R1 contained R3,R2 contained R3 R4, and I Used Spring Hibernate as persistent layer.
My question is how to build the role table in database to fulfil the requirement above and then How to do in Hibernate mapping file.