moxy: virtual mapping. Reference type always point to supertype
Work around the issue: Role can add user/role into subrole correctly.
The fix is : the type in oxm <xml-element> always points to super type.
At the same time in the JPA mapping, we still uses the specific
type(subtype if needed)
refresh user upon login
demo is ready: