I have an entity called Foo with an embedded class Boo. Both classes are declared in my persistence.xml. Boo is packaged in different jar than Foo. Foo is packaged in an EJB jar; Boo is packaged in an utility jar (app-inf/lib). Boo has a timestamp property.
Both jar are deployed and run successfully.
When I put @Version on timestamp property of Boo, I get following exception:
Exception [EclipseLink-93] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The table [FOO] is not present in this descriptor.
Descriptor: RelationalDescriptor(Foo --> [DatabaseTable(FOO)])
If I package Foo and Boo in the same ejb jar, this exception is not shown.