| Summary: | Require annotation and XML metadata support for ClassExtractionMethod | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | David McCann <david.mccann> |
| Component: | Eclipselink | Assignee: | 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: | |||
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
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(); }