I repeatedly find myself annotating my JPA entities with the very same set of annotations:
If both @Entity and @EntityListener were allowed to be used as meta-annotations I could collapse them into:
This is in line with the meta-annotation handling CDI exposes to introduce annotation with richer semantics in annotation code. The following changes would be required.
- Add ElementType.ANNOTATION_TYPE to the relevant annotations
- Specify that persistence providers have to evaluate the annotations from the meta-level as well using the first one found, so that locally defined annotations would be considered first.
|Field||Original Value||New Value|
|Assignee||ldemichiel [ ldemichiel ]|
|Fix Version/s||2.2 [ 17400 ]|
|Assignee||ldemichiel [ ldemichiel ]||Lukas Jungmann [ jungicz ]|