Community
Participate
Working Groups
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.
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?
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink