tried 2.1. no luck.
Exception [EclipseLink-74] (Eclipse Persistence Services - 2.1.0.v20100614-r7608): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The primary key fields are not set for this descriptor.
Descriptor: RelationalDescriptor(com.comany.SmStore --> [DatabaseTable(SM_STORE)])
but if the AbstractStore class's id is a primary type, say String, it works.
thanks,i will try 2.1.
as for now, with 2.01.MapedSuperclass cause another exception saying that AbstractStore has more than one primary key defined. i have to push the "id" field down to the concrete class to make it work.
i think it's a validation bug. i will try new version and post the result.
在 2010-6-23 下午9:30,"James Sutherland" <jamesssss@xxxxxxxxx>编写:
Sounds like a bug in our TABLE_PER_CLASS support.
Please try the 2.1 release, and if still broken please log a bug a vote for
it.
As a workaround you can use another inheritance type, such as
@MappedSuperclass or JOINED.
You could also probably use a DescriptorCustomizer to set the
classDescriptor's primaryKeyFields in code.
shawnh wrote:
>
> i have these classes.
>
> @Embeddable
> public class ProductId implements Seri...
_______________________________________________
eclipselink-users mailing list
eclipselink-users@ec...