On Wed, 1 May 2002, Hans Bergsten wrote: > Another alternative is to develop your own class for generating unique > IDs: > > public class IDGenerator { > public long getNextId() { > // Some algorithm, possibly based on a timestamp and a sequence > // number, to generate the next id > return nextId; > } > }
Yeah, I tend to like this approach too. Java offers java.rmi.server.UID, too, if you want to use a more "standard" mechanism. -- Shawn Bayern "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>