Skip to content

mysql keyword isn't mapping to the result #861

Closed as not planned
Closed as not planned
@maple-seven

Description

@maple-seven
@Getter
@Setter
@Table("table")
public class SpotMarginUserSettingEntity {

    @Id
    private Long id;
    @Column("uid")
    private Long uid;
    @Column("`key`")
    private String key;
    @Column("value")
    private String value;
    @Column("created_at")
    private Instant createdAt;

}

The field key return null when query , if set the @column("key") it works fine ; but it'll error when insert or update because key is a keyword in mysql;

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