title: @SecondaryTable annotation problem
body: <p>I have following model,</p>
  
  <pre><code>
  @Entity
  @Table(name = "user")
  @PrimaryKeyJoinColumn(name="user_id")
  @SecondaryTables({
  @SecondaryTable(name = "user_personal_details", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "user_id", referencedColumnName = "user_id")}),
  @SecondaryTable(name = "user_address", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "user_id", referencedColumnName = "user_id")}),
  @SecondaryTable(name = "user_contact_info", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "user_id", referencedColumnName = "user_id")}),
  @SecondaryTable(name = "user_auth_info", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "user_id", referencedColumnName = "user_id")})
  })
  public abstract class User extends Member implements IUser {
      @Column(table="user_personal_details")
      private UserPersonalDetails personalInfo;
      @Column(table="user_address")
      private Address address;
      @Column(table="user_contact_info")
      private UserContactDetails contactDetails;
      @Column(table="user_auth_info")
      private UserAuthInfo authInfo;
  ...
  }
  </code></pre>
  
  <p>When I try to insert a subclass of <code>User</code> I get an error shown below</p>
  
  <pre><code>10641 [main] ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
  org.hibernate.AssertionFailure:Table user_personal_details not found</code></pre>
  
  <p>Please shed some light on this behavior.</p>
  
  <p><strong>Class Definitions:-</strong></p>
  
  <p><strong>ManagedObject Class</strong></p>
  
  <pre><code>
  
  @Entity
  @Table(name="managed_object")
  @Inheritance(strategy=InheritanceType.JOINED)
  
  public abstract class ManagedObject implements IManagedObject
  {
      @Id
          @Column(name="mo_id", nullable=false, updatable=false)
          private String id;
      @Column(name="mo_name", nullable=false, updatable=true)
          private String name;
          @Column(name="mo_type", nullable=false, updatable=true)
      private String type;
          @Column(name="mo_additional_info", nullable=true, updatable=true)
      private String additionalInfo;
  ...
  }
  
  </code></pre>
  
  <p><strong>Member Class</strong></p>
  
  <pre><code>
  
  @Entity
  @Table(name="t_member")
  @PrimaryKeyJoinColumn(name="member_id")
  public abstract class Member extends ManagedObject implements IMember {
  
  }
  
  </code></pre>
  
  <p><strong>One of the Data/Info Class like UserPersonalDetails</strong></p>
  
  <pre><code>
  
  @Embeddable
  @Table
  public class UserPersonalDetails extends InfoObject{
      private String firstName;
      private String middleName;
      private String lastName;
  ...
  }
  
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Added <code>@Column(table="")</code> annotation in UserPersonalDetails members and yes I do have <code>@Embedded</code> annotation in <code>User</code> class.
  I have encountered following exception:</p>
  
  <pre><code>
  4469 [main] ERROR org.hibernate.AssertionFailure - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
  org.hibernate.AssertionFailure: Table user_personal_details not found
  </code></pre>