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

how to set an attribute when it is a key generated type? #919

Open
weiyongh opened this issue Nov 15, 2020 · 0 comments
Open

how to set an attribute when it is a key generated type? #919

weiyongh opened this issue Nov 15, 2020 · 0 comments

Comments

@weiyongh
Copy link

Thanks for such a great ORM library. Now I use requery for different OS such as windows, linux, android. It is cool when I put it in GraalVM native environement. It help me a lots to do something quickly and in a lighter way.

I have a question. If I construct my model by abstract class way, such as,

abstract class BaseSomething {
@key @generated
int id;
}

I find that the generated Somthing class has no accessor method for setId(int). I think it is a bit confuse especially when I do something, for example I want to construct Somthing with a special id when I do unit testing.

Can I walk around this limitation?

Thanks.

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