I'm using System.currentTimeMillis()
(which returns a long
integer) in Java to generate a unique ID for database entities since I assume that it's not possible for these times to overlap at any point.
Is this a safe assumption?
For example, at the moment I get this:
1296691225227
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…