[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: Unknown entity type

This is an odd error, it seems your classpath may be corrupt, or have issues. Are you in a basic JSE environment, or are you using something like Spring or OSGI?

EclipseLink 2.0 has been extensively tested in a JSE environment, so there is something wrong with your configuration. Is your persistence unit in a jar? It should be deployed in a jar with the persistence.xml in the META-INF directory and the entity classes inside their correct packages in the jar.

Your error says, "select object(o) from DiscountCode as o"

But your code has, "SELECT d FROM DiscountCode d"

So it seems your have your classes on the classpath twice, or something is corrupt in your environment.

Perhaps try one of the EclipseLink examples first.

---
James