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

Enhanced support for the @Deprecated annotation. #54

Open
x7airworker opened this issue Nov 10, 2023 · 0 comments
Open

Enhanced support for the @Deprecated annotation. #54

x7airworker opened this issue Nov 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@x7airworker
Copy link
Member

x7airworker commented Nov 10, 2023

Is your feature request related to a problem? Please describe.
Many applications evolve over time and this also means that Models are getting deprecated and aren't used anymore. By supporting this annotation we introduce a clear way for the engineer and ORM to handle this.

Describe the solution you'd like

  • The auto migrator should ignore the annotated models if the table doesn't exist already.
  • The ORM model should still be functional, if the table exists else the methods do nothing/return empty.

Describe alternatives you've considered
Check the annotation myself and don't make calls to the ORM methods.

Additional Context
The annotation has the RUNTIME RetentionPolicy and is therefore accessible at runtime.

@x7airworker x7airworker added the enhancement New feature or request label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant