Hey

Just a thought...

Rickard �berg wrote:
> OTOH, in order to properly support evolution of the application the ID
> should perhaps be prefixed with a vendor tag (e.g. "com.iona.12").
> Otherwise there are some insert-link-remove-insert-link scenarios that
> will cause faulty/stale links. For example: element is inserted, then
> linked to giving it ID "12", element is removed, and then one element is
> added and linked to, which gives it the ID "12" which is free. The first
> link is now faulty. Using prefixes will make it easier, or rather will
> make it *possible*, for vendor tools to determine which ID's are free to
> use. Blah, etc, you get the picture..

.. or why not KISS:
new ID = System.currentTimeMillis()
which is always unique...

/Rickard, :-)

--
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684

===========================================================================
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".

Reply via email to