Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 244464 - @Customizers-declare multiple customizers through annotation
Summary: @Customizers-declare multiple customizers through annotation
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-18 14:38 EDT by Shaun Smith CLA
Modified: 2022-06-09 10:19 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shaun Smith CLA 2008-08-18 14:38:29 EDT
In addition to the singular @Customizer, there needs to be support for multiple customizers on an Entity through an @Customizers annotation.

e.g.,

@Entity
@Customizers({PostBuildCustomizer.class, AuditingCustomizer.class));
public class Publisher implements Serializable {

The EclipseLink mapping file already supports multiple customizers and there is no need for any changes:

...
  <xsd:complexType name="entity">
...
    <xsd:sequence>
...
      <xsd:element name="customizer" type="orm:customizer" minOccurs="0"/>
...


The order the Customizers are run must be guaranteed to be in the order in which they are declared.
Comment 1 Tom Ware CLA 2009-04-16 11:01:53 EDT
Updating priority due to revised bug categorization process.  See the following page for details:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines#Priority_and_Target_Milestone 

If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:19:33 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink