Could anybody thow some light on this, or show some example on how to accomplish this:
I would like to annotate attributes of a POJO. That annotation will be used as an indicator later on for some logical operation. The logical operation check is case-sensitivity check of the value of the attribute of POJO
For example, a POJO would look like:
I would like to annotate each attribute of MyObj. Based on the annotation, I can do a logical check on case sensitivity of the value of the field of MyObj instance.
In other words, I want to annotate every field in a POJO for case sensitivity. If the annotation is present in a field, then I will handle that field differently.
1. Could anyone show me an example on how to annotate every field of POJO for similar situation?
2. Could somebody show me an example of how to later interrogate a field of POJO to identify if that field were annotated with caseSensitivity annotation?