title: About hibernate inheritace mapping and Discriminator column, how do I know which type of object?
body: <p>In jpa2 inheritance mapping, single table strategy, the discriminator column don't show in enitity object, and implicity mapping with DiscriminatorColumn annotation.</p>
  
  <p>then How do I know which sub object I get?</p>
  
  <p>I expect this:</p>
  
  <blockquote>
    <p>if(object.obj_type==1){   }</p>
  </blockquote>
  
  <p>and also, how do I get discriminator value in runtime ?</p>