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

Bug 315922

Summary: In absence of PropertyChangeListener set method is not woven for FetchGroups
Product: z_Archived Reporter: Andrei Ilitchev <andrei.ilitchev>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 244124    

Description Andrei Ilitchev CLA 2010-06-06 23:17:35 EDT
With PropertyChangeListener, correctly:
    public void _persistence_set_salary(int i)
    {
        _persistence_checkFetchedForSet("salary");
        _persistence_propertyChange("salary", new Integer(salary), new Integer(i));
        salary = i;
    }

without it, incorrectly:
    public void _persistence_set_salary(double d)
    {
        salary = d;
    }

Note that get is correct both
with PropertyChangeListener:
    public int _persistence_get_salary()
    {
        _persistence_checkFetched("salary");
        return salary;
    }
and without it:
    public double _persistence_get_salary()
    {
        _persistence_checkFetched("salary");
        return salary;
    }
Comment 1 Andrei Ilitchev CLA 2010-06-07 13:59:24 EDT
Fixed. See "Patch fixes non-weaving for fetch groups if not weaved for change
tracking - Updated." in bug 244124.
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:25:17 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink