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 16:53 Go to next message
harry rajan is currently offline harry rajan
Messages: 5
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 15:22 Go to previous message
James Sutherland is currently offline James Sutherland
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: Thu Jul 24 16:16:03 EDT 2014

Powered by FUDForum. Page generated in 0.01934 seconds