Skip to content

Postgresql and default  #61

@ZZerog

Description

@ZZerog

Hi. I still cannot catch this situation.

table column:
verification_hash uuid DEFAULT uuid_generate_v1() UNIQUE

POJO:

    @Column(name = "verification_hash")
    public String verificationHash;

When the insert method is called, column verification_hash is null.
I will try to implement my own JPA serialization for that or am I doing something wrong? Missing some annotation or something?

Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions