> Now I could do
> this in my super classes create() method, by having it return the ID for
> the
> entry it just created, however this does feel a little unusual, mainly
> because I'm not used to working with super objects, is that the correct
> way

At the end of SUPER.create( ARGUMENTS.SubObject ) you can have the parent
DAO call ARGUMENTS.SubObject.setID( newlyCreatedId ) which will make it
available in the child.  Make sure you make this a transaction so you don't
end up having orphaned IDs in the parent table.

HTH,
Rich Kroll


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290741
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to