My doubt is as follows .. must have the following classes of
employee .. as
salesman, manager, driver ... attributes in common with (employees)
and other
different position for that occupation in the company ... but how can
I create a more
inheritance below if not I can have a discriminator within a subclass?

***************************************************************
 <class name="Pessoa" table="PessoaDb" >
    <id name="ID" type="int" column="codPessoa">
      <generator class="identity"/>
    </id>

    <discriminator column="Tipo" type="String" />
 </class>
***************************************************************
  <subclass name="Funcionario" extends="Pessoa" discriminator-
value="Funcionario">
    <join table="FuncionarioDb">
      <key column="ID" />

    </join>
  </subclass>
****************************************************************


Reply via email to