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

Mapper: issue with the order of mapper constructor arguments in the generated database class #20

Closed
tamimattafi opened this issue May 18, 2024 · 0 comments · Fixed by #21
Assignees
Labels
bug Something isn't working

Comments

@tamimattafi
Copy link
Owner

Problem

The generated database class has Type mismatch errors when creating mappers using the constructor. This due to incorrect order of arguments.

The error looks like this:

Type mismatch.
Required:
ColumnAdapter<Int, Long>
Found:
ColumnAdapter<Long, String>

And doesn't allow a successful compilation

Solution

Use the same order to generate Mapper class and Mapper constructor calls inside database class

@tamimattafi tamimattafi added the bug Something isn't working label May 18, 2024
@tamimattafi tamimattafi self-assigned this May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant