Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331088 - After Load Tab does not accept static method with 1 param ClassDescriptor
Summary: After Load Tab does not accept static method with 1 param ClassDescriptor
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 03:04 EST by marcel.thiel CLA
Modified: 2022-06-09 10:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marcel.thiel CLA 2010-11-25 03:04:03 EST
Build Identifier: EclipseLink Workbench 2.1.0 v20100614-r7608

After Load Tab does not accept static method with 1 param ClassDescriptor.
I did every thing I could find in the docu: http://wiki.eclipse.org/Configuring_a_Descriptor_%28ELUG%29#Configuring_Amendment_Methods


public class StammdatenMappingAfterLoad implements Serializable {
    public static void abteilArtDaoAfterLoad(ClassDescriptor classdescriptor) {
        classdescriptor.setIdValidation(IdValidation.NULL);
    }
}

When I reference this class in the After Load Tab of the Mapped Class, it is keeping asking the question for specifying the appropiate method, and gives the error below: myMappingClass
   0323 - The after loading method must be specified.

The error is that the Workbench does not show me my static Method, displayed above.

Reproducible: Always

Steps to Reproduce:
1.Add a class in the workbench
2.Select Advanced Properties - After Load
3.Browse for the StammdatenMappingAfterLoad class and try to assign the Method - which does not seem to work for me.

It is a problem because EclipseLink seems to have different default settings as Toplink used to have. So we have now the problem that we need to set the IdValidatoin to Validate for the NULL as well. I have not found in the Default Tab.Defaults a Descriptor Advanced Property to set for the IdValidation in the Workbench.
Comment 1 Leslie Davis CLA 2011-01-24 19:05:06 EST
Marcel,

I'm unable to reproduce the issue as you describe.  I can create your class StammdatenMappingAfterLoad as described with the static method abteilArtDaoAfterLoad in the EclipseLink Workbench and select it as the After Load for a descriptor.  Would it be possible for me to get the specific Workbench project in a zip that you are seeing this behavior with?
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:35:11 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink