While you modify the annotations
for your EJB, as-you-type validation runs to provide you feedback
on any problems that it detects. These problems become errors when
you save them.
Before you begin
In the Java™ EE perspective,
open your Java class in the Java editor.
Procedure
While you type your code, red underlining indicates that
the validator flags any statement or value that have syntactic or
usage problems.