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

Fully specified @Transient annotation name is not working #657

Closed
Bringoff opened this issue Apr 21, 2017 · 2 comments
Closed

Fully specified @Transient annotation name is not working #657

Bringoff opened this issue Apr 21, 2017 · 2 comments

Comments

@Bringoff
Copy link

Bringoff commented Apr 21, 2017

I have started to use GreenDAO in project with Parceler integrated. Both Parceler and GreenDAO have annotation @transient. So I decided to use GreenDAO with its full name like @org.greenrobot.greendao.annotation.Transient in order to distinguish them. But when I annotate field recurringItemInstance in Item class this way I've got build error:

Error:Execution failed for task ':hitask:greendao'.
Can't add property 'Variable(type=VariableType(name=data.model.item.ItemInstance, isPrimitive=false, originalName=ItemInstance, typeArguments=null), name=recurringItemInstance)' to entity Item due to: Unsupported type data.model.item.ItemInstance

When I changed annotation style to static import and short name code generated correctly. That class also contained fully specified @org.parceler.Transient annotation on one getter.

@greenrobot-team
Copy link
Collaborator

Thanks for catching this! As a workaround you might try using the transient modifier keyword instead of the @Transient annotation.

Such as transient ItemInstance recurringItemInstance;.

-ut

@greenrobot-team
Copy link
Collaborator

3.3.0 has been released which should fix this issue.
https://greenrobot.org/greendao/changelog/

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

No branches or pull requests

2 participants