Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315922 - In absence of PropertyChangeListener set method is not woven for FetchGroups
Summary: In absence of PropertyChangeListener set method is not woven for FetchGroups
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 244124
  Show dependency tree
 
Reported: 2010-06-06 23:17 EDT by Andrei Ilitchev CLA
Modified: 2022-06-09 10:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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