title: How to extend Spring Security User Class in grails?
body: <p>I am using Spring Security plugin in my grails app. I have extended Springs User class in my own generated Physician class. Now when I run app I am not getting physician table in database instead User class only has all properties defined in Physician Domain. I need to have separate table for Physician.</p>
  
  <p>When I try to find all Users in User table with User.findAll() my output is,</p>
  
  <blockquote>
    <p>[com.HospitalManagement.User : 1, com.HospitalManagement.User : 2, com.HospitalManagement.User : 3, com.HospitalManagement.User : 4, com.HospitalManagement.User : 5, com.HospitalManagement.User : 6, com.HospitalManagement.User : 7, com.HospitalManagement.User : 8, com.HospitalManagement.User : 9]</p>
  </blockquote>
  
  <p>but I was expecting username and other physician properties values.</p>
  
  <p>What could the problem be?</p>
  
  <p>Domain Class is:</p>
  
  <pre><code>package com.HospitalManagement
  
  class Physician extends User{
  
      static constraints = {
      }
  
      String specilty;
      String MobileNo;
      String Physician_Address;
      String clinicals;
  
  
  }
  </code></pre>