Questions tagged [uuid]

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID (Universally Unique IDentifier) is an identifier that is created with the intent of being, as the name suggests, universally unique.

A UUID is a 16-octet (128-bit) number. In its canonical form, a UUID is represented by 32 hexadecimal digits, displayed in five groups separated by hyphens e.g.

5a0e8422-e29b-41d4-a716-416155440000

UUID is standardised by the Open Software Foundation (OSF) as part of the Distributed Computing Environment (DCE).

Wikipedia page for Universally Unique Identifier

See also:

3237 questions
1
vote
0 answers

Migrating old GUID (Symfony <= 5.2) to new UUID Component (Symfony >= 5.3) as Entity ID

I started with Symfony 4 and used the Security Components from the "Get Started" tutorial. Everythings went fine. I don't like Integer as ID, so switched to UUID as the ID if the Entity. Entity schema: /** * @ORM\Id() *…
ulfilas
  • 21
  • 5
1
vote
1 answer

Generating a UUID by limiting the characters' length

I am using the node js library uuid-int to generate unique id. const id = 0; const generator = UUID(id); const uuid = generator.uuid(); // e.g. 3425779734788360 However I want to reduce the length of the number while making sure it is still…
John doe
  • 3,680
  • 7
  • 31
  • 65
1
vote
1 answer

How to convert UUID to base 64 and vise versa

I have the following extension to convert UUIDs to base64 url safe strings and vise versa. I'm struggling with my base64UrlSafeString not returning a utf8 string because the underlying data is an array of UInt8. At least I think that's the problem…
Kacy
  • 3,330
  • 4
  • 29
  • 57
1
vote
1 answer

Export and Import documents with UUID from MongoDB Compass Windows Application

Summary How to preserve UUIDs when exporting and importing documents? Export collection as JSON file Drop collection and re-create collection Import JSON file UUIDs are converted to Binary('bsOPwpzDrcKCcE0Iwr1FwrHDn8KRfsKdw7U=', 0) Cannot read…
Kappacake
  • 1,826
  • 19
  • 38
1
vote
0 answers

Sequelize setting default value using uuid_generate_v4 gives syntax error

I have been following SO advice describing how to use uuids with Sequelize in a Postgres database and defining the model to generate a uuid default value. It references this article here. The advice requires the uuid-ossp extension. I have validated…
partnerd
  • 53
  • 1
  • 5
1
vote
0 answers

what is a secure way to create a refresh token used on refresh token rotation

On my token authentication, I have two tokens, one is a short term access token and another is a long time refresh token. I want to implement a refresh token rotation. So I'm going to hash the refresh token and then save to the database. When the…
Moon
  • 790
  • 1
  • 8
  • 19
1
vote
1 answer

Cannot upload id by using uuid on firebase with React.js

Here is my function on JS, the issue is uuid would be saved as text like photos below by using .ref('posts/${id}') According to photo 3, the uuid is working correctly, so I assume that there are some simple code mistakes on my "sendPost". If you are…
K Lee
  • 473
  • 3
  • 16
1
vote
1 answer

Does Oracle 19 database support UUID columns?

Does Oracle 19 database support UUID columns, to store for example 123e4567-e89b-12d3-a456-426614174000? I know that Oracle NoSQL supports this, but I'm looking for Oracle SQL. If not how should I implement it? A 36 character varchar2 column with…
user5507535
  • 1,580
  • 1
  • 18
  • 39
1
vote
1 answer

How to create default constraint on the table of Firebird to assign auto-generated UUID value

I am trying to define a table with a column type of UUID (CHAR(16) CHARACTER SET OCTETS). After reading through the Firebird 3.0 Developer's Guide, I found only context-variables/simple expression/constant are supported. I would like to know if…
Andrew
  • 17
  • 4
1
vote
1 answer

Creating a UUID for a computer from Flash

I'm making a Flash program to be downloadable and unlockable on one computer on receipt of payment. To do this, I was looking to create a UUID for a computer which could be checked to make sure that the program has not been moved to another computer…
mmdeas
  • 183
  • 3
  • 10
1
vote
1 answer

How to generate UUID sequentially so that difference between two consecutive uuids would be 1?

I am working on cursor based pagination and need a unique column which is sequential, so it would give proper fetch result. I know this can be solved by setting column as auto_increment with datatype bigint but eventually it will hit the limit of it…
pjsagar
  • 241
  • 3
  • 11
1
vote
2 answers

How to populate value with input

From a composer.lock I am creating json output of some fields, like this:
1
vote
3 answers

How can i generate an entity id only if it is null with JpaRepository?

I have this class with UUID as primary key: @Entity @Table(name = "JOURNAL") @Data @Builder @NoArgsConstructor @AllArgsConstructor public class JournalEntity extends AbstractEntity { @Id @GeneratedValue(generator = "UUID") …
Francesco Rogo
  • 343
  • 3
  • 13
1
vote
2 answers

How to specify on error behavior for postgresql conversion to UUID

I need to write a query to join 2 tables based on UUID field. Table 1 contains user_uuid of type uuid. Table 2 has this user_uuid in the end of url, after the last slash. The problem is that sometimes this url contains other value, not castable to…
1
vote
1 answer

Django + Postgres + UUID

UPDATE: I have got it to work! What I did was: Deleted the app Went into Postgres Admin and deleted the Schema for that app Created the app again (using a diff name) Created the Models, URLs, Admin Registering, Views So I've been trying to add a…