@Retention(RUNTIME) @Target(FIELD) public @interface NotEmpty
If you also need the value to be non-blank i.e. not all whitespace then use NotBlank. If you need to enforce a minimum length then use MinLength.
NotBlank
MinLength