UUID to unique integer id?

You are going to have a problem since the UUID is 128 bits and the int is only 32bit. You’ll either have to accept the risk of collisions and try to fudge it to a smaller space (hashCode is probably a good way to do that) or find an alternative (use the UUID directly, map to a BigInteger – difficult to tell without knowing why)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)