I am developing an application in Windows 7 with NetBeans 8.1 and a SQL Server 2012 database. I have mapped the entities directly from the database but at the moment of starting my application I get this error:
Severe: Exception while preparing the app: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b):
org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [SEFARCOL_PU] failed.
Internal Exception: Exception [EclipseLink-7250] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b):
org.eclipse.persistence.exceptions.ValidationException
Exception Description: [class com.mycompany.sefarcoldatos.Lineaproduccion] uses a non-entity [class com.mycompany.sefarcoldatos.Tipolinea] as a target entity in the relationship attribute [field idtipolinea].
Does anyone know why this exception happens, and what can I do to correct it?