Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

auto generated field question

hi, i got class with @autogenerated=true annotation on a member. my question is, can i get the auto generated id after i insert the object to the space?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2552]{quote}

asked 2008-08-24 08:13:08 -0500

sabag2 gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Check the return object from the Write Operation: com.j_spaces.core.LeaseContext

LeaseContext lease = space.write(myObject, 1000); lease.getUID(); //returns UID of written object

Shay

answered 2008-08-24 12:13:00 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-08-24 08:13:08 -0500

Seen: 31 times

Last updated: Aug 24 '08