@UserRoles only works in ManyToMany-Relation.
If we provide two @OneToMany-relations instead of one @ManyToMany, then @UserRoles does not work!
The UserRolesProperty returns the UserRoles-Instance instead of the Roles-Instance.
However, when having additional attributes in UserRoles we should better use two @OneToMany-Relations -
but then @UserRoles does not work.
As Shane said:
"I don't think that we currently support cross reference tables in this manner, although we should. "
Yes, it would be fine