I use lombok and JPA in my system. So for the entity classes, all of them looks like:
@Getter
@Setter
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class XxxEntity {
...
}
So my question can I create a custom annotation to grouping these all these annotations?
so it may look like:
@CustomAnnotation
public class XxxEntity {
...
}
And when I use the @CustomAnnotation, it will apply all the above annotation to that class.
Is this possible?
Thanks.