Hi.

I am getting the next exception when I try to save a register using the classes managed by JPA:

ADVERTENCIA: java.lang.IllegalArgumentException: Object: co.com.colpatria.crm.dao.TbInfoPersonaNatural@53ca 8a is not a known entity type.
at oracle.toplink.essentials.internal.sessions.UnitOf WorkImpl.registerNewObjectForPersist(UnitOfWorkImp l.java:3212)



I have been looking in Internet, but I could not solve it.

My persistence file is:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">

<persistence-unit name="ClientesErradosCRMPU"
transaction-type="RESOURCE_LOCAL">
<provider>
oracle.toplink.essentials.PersistenceProvider
</provider>
<class>co.com.colpatria.crm.dao.TbInfoPersonaNatur al</class>
<class>co.com.colpatria.crm.dao.TbInfoPersonaJurid ica</class>
<properties>
<property name="toplink.jdbc.driver"
value="oracle.jdbc.driver.OracleDriver" />
<property name="toplink.jdbc.url"
value="....." />
<property name="toplink.jdbc.user"
value="...." />
<property name="toplink.jdbc.password" value="...." />
</properties>
</persistence-unit>

</persistence>

Both class (TbInfoPersonaNatural and TbInfoPersonaJuridica) have the respective anotations:

@Entity
@Table(name = "TB_INFO_PERSONA_JURIDICA", schema = "METRICAS_ORIGINACION")

Could any help me?

Thanks in advance.