| [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?
no additional frameworks
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"
may some class be duplicated in eclipselink.jar and javax.persistence.jar(2.0)? I see there are same javax.persistence.* packages in both but don't know if there are duplicated in classes.
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.
will look tomorrow, also will try to reverify what I wrote above.
--- James
Attachment:
JavaApplication5.zip
Description: Zip compressed data