JavaWebStack / JavaWebStack/orm

Enhanced support for the @Deprecated annotation.

未关闭
#54 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Java
星标
7
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

**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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 auto migrator 和 ORM 模型的入口点,然后检查当前如何处理运行时注解和缺失的表。验证对已弃用模型所要求的行为:现有表仍可使用,而不存在的表会被忽略,ORM 方法不执行任何操作或返回空结果。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
database
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。