Named Queries
  • An entity may declare named queries, using the @NamedQuery annotation
@NamedQuery Annotation Example  
  • Multiple named queries can be defined by using the @NamedQueries annotation
@NamedQueries Annotation Example