I have a problem with using multiple annotations that all say more or less the same thing but to different frameworks and I would like to group them all into one custom annotation. Currently it looks like this:
@Column(name = "bank_account_holder_name")
@XmlElement(name = "bank_account_holder_name")
@SerializedName("bank_account_holder_name")
@ApiModelProperty(name = "bank_account_holder_name", value = "The name of the recipient bank account holder")
public String bankAccountHolderName;
As you can see they all repeat the same String and I would like to combine them, but I have yet to find a way of doing so.
Is it at all possible to do this, or do I have to either continue doing this or change/create a new framework?
static final String ENTITY_NAME = "bank_account_holder_name";
that you can use in all the annotation declarations. – Metalepsis