Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » @MappedSuperClass with DynamicEntity
@MappedSuperClass with DynamicEntity [message #962052] Sun, 28 October 2012 20:53 Go to next message
harry rajan is currently offline harry rajanFriend
Messages: 6
Registered: October 2012
Junior Member
Is there way to create a dynamicEntity which inherits from MappedSuperclass using EclipseLink.

I tried
Class<?> catalogObjectClass = dcl.createDynamicClass("className",xyz.class);

where xyz.class is the name of the mappedsuperclass but couldn't get it to work as desired.
I got this error during persist

"In order to use ObjectChangeTrackingPolicy or AttributeChangeTrackingPolicy, class has to implement ChangeTracker interface."

Re: @MappedSuperClass with DynamicEntity [message #964750 is a reply to message #962052] Tue, 30 October 2012 19:22 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

No. But the dynamic class should already implement ChangeTracker.

James : Wiki : Book : Blog : Twitter
Previous Topic:Partitioning parallel query execution
Next Topic:NPE in CascadeLockingPolicy.initUnmappedFieldsQuery
Goto Forum:

Current Time: Tue Apr 24 11:03:27 GMT 2018

Powered by FUDForum. Page generated in 0.01632 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software