Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

primitive boolean is generated for nullable fields #37

Open
ofirgrm opened this issue Jun 10, 2021 · 0 comments
Open

primitive boolean is generated for nullable fields #37

ofirgrm opened this issue Jun 10, 2021 · 0 comments

Comments

@ofirgrm
Copy link

ofirgrm commented Jun 10, 2021

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant