I tried that method already and it just returns null because the eventID
on the Event object isn't set when the other information is saved.

Brian 

-----Original Message-----
From: Scott Eade [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 12:16 AM
To: Turbine Users List
Subject: Re: problem doing inserts using Criteria and Peer

brian wrote:

>I looked but I didn't see a method for retrieving the auto generated
>value from an insert statement. Is there a way to do this when the data
>is saved this way?
>  
>
Try:

Event event = new Event();
event.save();
int eventId = event.getEventId();


Scott

-- 
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to