To make this optional, you can give it a default value:
public @interface ColumnName { String value(); String datatype() default "String"; }
Then, when using the annotation, you do not need to specify it.
Johannes Wachter Aug 19 '10 at 9:35 a.m. 2010-08-19 09:35
source share