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

@Transient should throw error when used inside interface or define the store/methods. #225

Closed
kenyee opened this issue Jul 20, 2016 · 0 comments
Labels

Comments

@kenyee
Copy link

kenyee commented Jul 20, 2016

When defining an entity like so:

@entity
public interface Person {
@transient
Double getWeight();
@transient
void setWeight(Double value);
}

You'll get a compile time error of: "PersonEntity is not abstract and does not override abstract method setWeight(double) in Person."

If @transient cannot be used in an interface, it should throw an error when used there. Or Requery should generate the field/methods defined by @transient.

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

No branches or pull requests

2 participants