wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

Refactor IScheduleEntry property 'id' to 'rowId' #223

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It appears to me that the rowId of the schedule is assigned to the id of the 
IScheduleEntry 
implementation.

I store all my entries in the database with a unique ID field, currently I 
store all my entries with 
an additional property of and Appointment object which holds the unique ID, 
however if I were to 
refactor my code in order to have the Appointment directly implement 
IScheduleEntry, the 
unique Id would get trashed, or specifically in my case I can't implement two 
interfaces (a 
generic hibernate persistent object in our java layer) and ISchedulEntry as 
both have a 'ID' field, a 
Java long on one, a String on the other..

I could get round that with namespaces perhaps but that seems a bit of a fudge 
to me.

Simply I think that the 'ID' field on IScheduleEntry should be called rowID as 
indeed that appears 
to be it's real purpose.

Please feel free to tell me i've misunderstood the framework in some way as I'm 
relatively new to 
Flex/AS3.. or tell me to stop talking out of my rear

Original issue reported on code.google.com by JAScrims...@gmail.com on 18 May 2009 at 4:20