Yup, thanks
 
Da: [email protected] [mailto:[email protected]] Per 
conto di Chris Peterson
Inviato: venerdì 12 dicembre 2008 11.53
A: [email protected]
Oggetto: [transfer-dev] Re: identity ID
 
When you create a record, and the database controls the ID, you will do 
something like this:

<cfset newUser = transfer.new("user") />
<cfset newUser.setFirstName("Me") />
<cfset transfer.save(newUser) />

<!---// This is where you will get to see what the ID is, all the magic happens 
inside the transfer.save method //--->
<cfoutput>
Hello #newUser.getFirstName()#, your ID is #newUser.getID()#!
</cfoutput>

Hope that clarifies!

Chris Peterson
On Fri, Dec 12, 2008 at 5:44 AM, Salvatore FUSTO <[email protected]> wrote:
Hi all,
i'm new to transfer and to this group too; i've a little question: if I define 
a bean with an id, and the corresponding field in the corresponding table is of 
type identity, can transfer returns the id of the saved record?
Regards
salvatore
 
 



-- 
Hey! I dont tell you how to tell me what to do, so dont tell me how to do what 
you tell me to do! ~ Bender (Futurama)


--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to