79549696

Date: 2025-04-02 04:51:43
Score: 0.5
Natty:
Report link

I guess you used UUID for user_id.
UUID is strange when working with JPA. We are mapping that out to varchar, so they're kind of meant to be a binary or String. You need the @Type annotation to tell JPA how you want to store them. If you save them as binary and work with the DB directly and do a select statement on it, you don't see the UUID
Adding this annotation will hopefully solve the problem

@Type(type="org.hibernate.type.UUIDCharType")

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Type
Posted by: Radoslav