Issue Details (XML | Word | Printable)

Key: GDS-141
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Franck Wolff
Reporter: Cameron Ingram
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GraniteDS

entity with Embedded/compound key are not bieng generating with a compond id field.

Created: 24/Jul/08 03:23 PM   Updated: 06/Aug/08 07:20 PM   Resolved: 06/Aug/08 07:20 PM
Component/s: AS3 code generation
Affects Version/s: 1.1.0_RC3
Fix Version/s: 1.1.0_RC4


 Description  « Hide
The generated code is simply using the id field for the uid and it supposed use all the properties of the compound key. Because of this issue objectEquals of the BaseContext.as is failing and which leads to unexpected data.

This is what is currently bieng generated.
 
     public function get uid():String {
            if (!_id)
                return "com.pscufs.xtremecallcenter.ejb3.entity.CallTrackingRfcRfi";
            return "com.pscufs.xtremecallcenter.ejb3.entity.CallTrackingRfcRfi:" + String(_id);
       }
 
Code should be something like
 
        public function get uid():String {
            if (!_id)
                return "com.pscufs.xtremecallcenter.ejb3.entity.CallTrackingRfcRfi";
            return "com.pscufs.xtremecallcenter.ejb3.entity.CallTrackingRfcRfi:" + String(_id.callTrackingRfcId + '' + _id.callTrackingRfiId);
        }