named queries and roleId in RoleMapping
realmId and roleId used in User and user relationships
db schema
Merge pull request #536 from patriot1burke/master

realmId and rroleId