Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321256

Summary: Require annotation and XML metadata support for ClassExtractionMethod
Product: z_Archived Reporter: David McCann <david.mccann>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 321254    
Bug Blocks:    

Description David McCann CLA 2010-07-29 13:53:08 EDT
We currently have XML metadata support (and will have annotation support) for ClassExtractor, but not ClassExtractionMethod.  

A class extraction method can be set on the InheritancePolicy via this method:

    public void setClassExtractionMethodName(String)

The XML metadata could look something like this:

    <java-type name="org.example.Person">
        <xml-class-extraction-method name="getClassForRow" />
    </java-type>

And the annotation could look something like the following:

    @Target({TYPE})
    @Retention(RUNTIME)
    public @interface ClassExtractionMethod {
        /**
         * (Required) Defines the name of the class extraction method
         * that should be applied to this entity's descriptor.
         */
        String value(); 
    }
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:36:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink