Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
回复: Re: [eclipselink-users] EmbeddedId in superclass

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...

-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://old.nabble.com/EmbeddedId-in-superclass-tp28932574p28971888.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


_______________________________________________
eclipselink-users mailing list
eclipselink-users@ec...


Back to the top