Is there a way to get the auto generated event id 
When using this method?
Event event = new Event();
Event.setEventDesc("event description");
event.save();

event.getEventId() returns null because the event id is not updated
with the newly created event id when the save method is invoked.

brian

-----Original Message-----
From: brian [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 19, 2003 10:33 AM
To: 'Turbine Users List'
Subject: RE: problem doing inserts using Criteria and Peer

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]


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

Reply via email to