Skip to content

[BUG] - @Default with @LogicalDeleted updated field only default value enumeration #1359

Description

@valback3

Jimmer Version

0.10.6

JDK Version

JDK 25

Database

PostgreSQL

OS

Windows

Expected behavior

I expect that the value I am writing (different from @LogicalDeleted) will update the value stored in the database

Image Image

Actual behavior

But the generated SQL query immediately includes a query with the default value.
Image

Description

When using an enum as a flag for @LogicalDeleted, the value specified by @default is always set during an update. However, the documentation states that @default does not affect update operations, only insert operations.

Reproduction steps

To reproduce the bug, you need to save an entity with a status (enumeration) @default, and then update the status column to a value different from @LogicalDeleted.

Generated SQL

No response

Relation Model

Image Image Image Image

Screenshots

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions