Extending vs Associating the User class (Spring Security)

dspies

New member
I am trying to determine what the best practice is for using/extending the User class provided by the Spring Security core plugin. For an Employee class, created to keep more information on the users of the system, should I be extending the User class or creating an association to it. For example,
Code:
class Employee extends User
or
Code:
class Employee {
  User user
  ...
}

Currently, I am extending the User class, but I am running into issues in Grails Webflow using the Employee class.
 
Top