I would like something that creates id-s automatically. For example if I ha=
ve instances like:=0A=0A<Person PersonId=3D"">=0A......=0A</Person>=0A=0Aea=
ch time I want to insert an instance into my database, I have to compute th=
e id for the new instance by getting the last PersonId + 1, which is not go=
od at all....=0A=0AIs there any documentation to know how the util:uuid() f=
unction works?=0A=0A----- Mensaje original ----=0ADe: Dannes Wessels <dizzz=
z@...>=0APara: Amagoia Madina <amagoiamb@...>=0ACC: exist-open@=
lists.sourceforge.net=0AEnviado: lunes, 29 de enero, 2007 13:34:22=0AAsunto=
: Re: [Exist-open] Sequence for generating id-s=0A=0Ahi,=0A=0AOn 1/29/07, A=
magoia Madina <amagoiamb@...> wrote:=0A> Do we have a mechanism for g=
enerating id-s automatically? a structure like a=0A> sequence for example..=
..=0A=0Ait's unclear for me what you exactly mean, but since this weekend w=
e=0Ahave in SVN the function util:uuid(), would that fulfill your needs?=0A=
=0Aregards=0A=0ADannes=0A=0A-- =0A# Dannes Wessels # The Netherlands #=0A# =
Jabber / ICQ / MSN / AIM / Yahoo / gTalk / Skype / LinkedIn #=0A=0A=0A=0A=
a Gratis a cualquier PC del Mundo. =0ALlamadas a fijos y m=F3viles desde 1 =
c=E9ntimo por minuto. =0Ahttp://es.voice.yahoo.com
On 1/29/07, Amagoia Madina <amagoiamb@...> wrote:
> each time I want to insert an instance into my database, I have to compute
> the id for the new instance by getting the last PersonId + 1,
yeah that is the way to do...
> which is not good at all....
> Is there any documentation to know how the util:uuid() function works?
well, as I wrote it is in SVN only at this moment, but it will give
you a *huge* random ID. And... it is documented in the same way all
functions are documented.... automagically.
# Dannes Wessels # The Netherlands #
# Jabber / ICQ / MSN / AIM / Yahoo / gTalk / Skype / LinkedIn #