JavaWebStack / JavaWebStack/orm

Add feature to store UUID as binary

Open
#49 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Java
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
Currently an UUID is always stored as a VARCHAR(36), but since UUIDs are just hex values with seperators, they could be stored in a BINARY(16).

Describe the solution you'd like

  • An option in the Column annotation like preferBinary
  • A setting in the ORMConfig like preferBinaryUuids

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Column annotation and ORMConfig, then trace how UUID fields are currently mapped to VARCHAR(36). Determine how the requested preferBinary and preferBinaryUuids options should interact, and define completion around storing UUIDs as BINARY(16) through those configuration paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.