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

Loading annotation from traits too #318

Merged
merged 1 commit into from
Oct 28, 2018

Conversation

namo-R
Copy link

@namo-R namo-R commented Oct 26, 2018

Just idea to load annotation for Entity from traits too. Example can be using TimestatemableTrait with created... or update... columns, next can be cancelled... etc...

First load trait, then entity class for overrides. Methods are loaded from original class with use ***trait.

@hrach
Copy link
Member

hrach commented Oct 26, 2018

@namo-R Hi, this seems great! Could you please add some test? Maybe just move some already present properties to trait. Also, you may fix the commiter email to match your GitHub profile, if that's you :)

@hrach hrach added the feature label Oct 26, 2018
@namo-R namo-R force-pushed the load_annotation_from_traits_in_entity branch from 2638af0 to 2c70212 Compare October 26, 2018 12:44
Test for loading trait annotation - created column
@namo-R namo-R force-pushed the load_annotation_from_traits_in_entity branch from 2c70212 to 8fbdb0a Compare October 26, 2018 13:41
@namo-R
Copy link
Author

namo-R commented Oct 26, 2018

Edited version - have to change because master using classPropertiesCache property. Test added, looks good ;)

@hrach hrach merged commit 933c82c into nextras:master Oct 28, 2018
@hrach
Copy link
Member

hrach commented Oct 28, 2018

Thanks a lot!

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

Successfully merging this pull request may close these issues.

2 participants