I have a class (I presume this is the best way to do it) ‘Account’ which extends ‘User’.
Is it possible to instantiate every new ‘Account’ with a specified Role?
I guess what I am asking is how to get the roles from the system?
e.g.
public Account() extends User {
…
Role role = Role.CUSTOMER
List roles = …
roles.add(roles)
this.userRoles=roles;