Ejb 3.0 - Table per subclass - Unknown entity: ejb.entity.RubricaBean
Hello I have this problem using table per subclass:

    public class PimBean implements Serializable {

    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PM_ID_SEQ")
    @SequenceGenerator(name = "PM_ID_SEQ", sequenceName = "pm_id_seq", initialValue = 1, allocationSize = 1)

    @Column(name = "PIM_ID", length = 11, nullable = false)
    @Id
    private Long  id;
    @Column(name = "PIM_FileIn")
    private byte[] fileInput;
    }
then I have created this subclass

    public class RubricaBean extends PimBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "RUB_id")
    
    private Long  id;
    @Column(name = "RUB_name")
    private String name;
    @Column(name="RUB_surname")
    private String surname;
    @Column(name="RUB_phoneNumber")
    private String telephNumber;


    public RubricaBean() {
        
    }
}
and put in the persistance.xml these information:

    <entity-mappings>
           <entity class="ejb.entity.PimBean">
                <inheritance strategy="JOINED"/>
                    <attributes>
                        <id>
                            <generated-value/>
                        </id>
                    </attributes>
           </entity>
           <entity class="ejb.entity.RubricaBean"/>

        </entity-mappings>
then I use to call in the PimFacade:

    RubricaBean rubrica=new RubricaBean(fileName,"pippo", "baudo", "38987623456");
    em.persist(rubrica);

and I have this message error:

**Unknown entity: ejb.entity.RubricaBean
        at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:215)
**

I'm using jboss 4.2 and oracle.

So, what should I do? thanks in advantage
Ejb 3.0 - Table per subclass - Unknown entity: ejb.entity.RubricaBean
===

Hello I have this problem using table per subclass:

    public class PimBean implements Serializable {

    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PM_ID_SEQ")
    @SequenceGenerator(name = "PM_ID_SEQ", sequenceName = "pm_id_seq", initialValue = 1, allocationSize = 1)

    @Column(name = "PIM_ID", length = 11, nullable = false)
    @Id
    private Long  id;
    @Column(name = "PIM_FileIn")
    private byte[] fileInput;
    }
then I have created this subclass

    public class RubricaBean extends PimBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "RUB_id")
    
    private Long  id;
    @Column(name = "RUB_name")
    private String name;
    @Column(name="RUB_surname")
    private String surname;
    @Column(name="RUB_phoneNumber")
    private String telephNumber;


    public RubricaBean() {
        
    }
}
and put in the persistance.xml these information:

    <entity-mappings>
           <entity class="ejb.entity.PimBean">
                <inheritance strategy="JOINED"/>
                    <attributes>
                        <id>
                            <generated-value/>
                        </id>
                    </attributes>
           </entity>
           <entity class="ejb.entity.RubricaBean"/>

        </entity-mappings>
then I use to call in the PimFacade:

    RubricaBean rubrica=new RubricaBean(fileName,"pippo", "baudo", "38987623456");
    em.persist(rubrica);

and I have this message error:

**Unknown entity: ejb.entity.RubricaBean
        at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:215)
**

I'm using jboss 4.2 and oracle.

So, what should I do? thanks in advantage