Hi David,
I think we'll need a bit more information.  What do your Entities look
like?  What's in your persistence.xml file?  From the exception text, it
looks like you have an Entity with the name of "TYPE".  Is that accurate?
That may be reserved word, have you tried something like "TYPE1" just for
grins?  You also mention that the @Table annotation is not working, what
table name are you using in the @Table annotation?  Whether you are running
in an OSGI environment or not, this should be working for you.  Let us know
more details and we'll see if we can help you out.

Thanks,
Kevin

2009/3/26 David Leangen <k...@leangen.net>

>
> Hello!
>
> In an OSGi environment, I come across the exception below.
>
> Why don't the default values work, I wonder?
>
> I also tried explicitly using the @Table annotation, but I still get the
> same error.
>
> Probably, the error message is misleading somehow. Any ideas where I
> should look?
>
>
> Thank you!
> =dml
>
>
>
> <openjpa-1.2.0-r422266:683325 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: No table was given for
> persistent type "TYPE".
>        at
> org.apache.openjpa.jdbc.meta.MappingInfo.createTable(MappingInfo.java:437)
>        at
>
> org.apache.openjpa.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:241)
>        at
>
> org.apache.openjpa.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:259)
>        at
>
> org.apache.openjpa.jdbc.meta.strats.FullClassStrategy.map(FullClassStrategy.java:71)
>        at
>
> org.apache.openjpa.jdbc.meta.ClassMapping.setStrategy(ClassMapping.java:377)
>        at
>
> org.apache.openjpa.jdbc.meta.RuntimeStrategyInstaller.installStrategy(RuntimeStrategyInstaller.java:55)
>
>

Reply via email to