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

Whether it is possible to use two @Type ( i.e @Type("users") ,@Type("articles") ) in a model file #61

Closed
pradeepmallika opened this issue Aug 1, 2016 · 2 comments

Comments

@pradeepmallika
Copy link

@jasminb
because my type value is only different but the values inside is same , if it not, whether any alternative way is there, to avoid duplicate the model file except the @type variation

Pradeep

@jasminb
Copy link
Owner

jasminb commented Aug 1, 2016

You can make a base class and than extend it two times and annotate with differently configured Type annotation.

Please see README for example.

@pradeepmallika
Copy link
Author

@jasminb Thank you, your solution worked.

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

2 participants