Skip to content

primitive boolean is generated for nullable fields #37

Open
@ofirgrm

Description

@ofirgrm

A (non-nullable) field which was defined in mySql schema as bit(1) generated the following:

@column(name = ""xxx"", nullable = true)
private boolean xxx;

This resulted in an exception when a null value was assigned to the field
Instead, the field should have been created using the Boolean class:

@column(name = ""xxx"", nullable = true)
private Boolean xxx;

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