rocketraman
04/25/2025, 1:37 PMdata class FooBar(val id: TypedUuid<FooBar>, …)
and the serialization of id
be as simple as fb_<uuid>
.rocketraman
04/25/2025, 1:41 PMTypedId
takes the prefix as a parameter and has a custom serializer that reads/writes the correct format. But that requires the prefix to be passed at all constructor call sites, which sucks.phldavies
04/25/2025, 2:06 PMphldavies
04/25/2025, 2:14 PMrocketraman
04/25/2025, 5:00 PMId
type for each model type. Any thoughts on making that generic?