|
|
|
|
|
|
|
Re: Unknown entity type [message #480868 is a reply to message #478702] |
Tue, 18 August 2009 17:54 |
|
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
James : Wiki : Book : Blog : Twitter
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03079 seconds