something like this:
Code:
<hibernate-mapping package="es.lnm.ucae.model.requisitos">
<class
name="es.lnm.ucae.model.Requisito"
table="requisito"
>
<!-- P * Puesto -->
<subclass name="RequisitoPuesto" discriminator-value="P"/>
<!-- Z * Zona -->
<subclass name="RequisitoZona" discriminator-value="Z"/>
<!-- E * Subempresa -->
<subclass name="RequisitoSubempresa"discriminator-value="E"/>
<class/>
</hibernate-mapping>
The root class is in package es.lnm.ucae.model and subclasses are in package es.lnm.ucae.model.requisitos.
Because the package especified in <hibernate-mapping> is es.lnm.ucae.model.requisitos I have to name the class with its full name name="es.lnm.ucae.model.Requisito"