lundi 12 février 2018

Annotation - how to add field level annotation in Java dynamically

Imagine there is class

Public class sample {

Private String fieldName; } Which already compiled and the part of the claspath when the jam statsup. I want add @notnull and @size(min=1,max=5) dynamically for fieldName(not class level)

Any suggestions plz





Aucun commentaire:

Enregistrer un commentaire