lombok-pg -

lombok
Annotation Type EnumId


@Target(value=FIELD)
@Retention(value=SOURCE)
public @interface EnumId

This annotation allows you mark fields in enums as identifier, so these fields can be used to identify enum values. To do that, the following method

     public static ENUM_TYPE findByFIELD_NAME(FIELD_TYPE FIELD_NAME)
 
will be generated for each annotated field.


lombok-pg -

Copyright © 2010-2011 Philipp Eichhorn, licensed under the MIT licence.