Sorry Reddy but I think that the VMID/UID classes will not help you unless
you change the data type of your database. The VMID/UID classes cannot be
reduced to a simple integer as an integer does not give enough combinations
to gaurantee uniqueness. The data type you would need would be a char of at
least 40 in size (you will have to work that out yourself), or you could use
a combination of data types.
Perhaps the VMID/UID classes will not work with your project and a simple
counter system will work better - it is a decision you must make.
Myles
> -----Original Message-----
> From: E Bakka Reddy [SMTP:[EMAIL PROTECTED]]
> Sent: 06 February 2001 11:02
> To: [EMAIL PROTECTED]
> Subject: Re: Autonumber primary keys
>
> Hi Myles
>
> I am getting the keys like following
>
> UID random key gen...111f71:e15229e846:-8000 VMID random key
> gen...9cce8edc2a0eb045:111f71:e15229e846:-7fff
>
> but my database field is integer type, how this is useful, but there is a
> hashCode() method on these classes, can we use it, is it correct way.
>
> Thanks,
> Reddy
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".