code: public XAnnotation<javax.persistence.NamedQuery> createNamedQuery(
  			NamedQuery source) {
  		return source == null ? null :
  		//
  				new XAnnotation<javax.persistence.NamedQuery>(
  						javax.persistence.NamedQuery.class,
  						//
  						AnnotationUtils.create("query", source.getQuery()),
  						//
  						AnnotationUtils.create("hints",
  								createQueryHint(source.getHint()),
  								QueryHint.class),
  						//
  						AnnotationUtils.create("name", source.getName()),
  						AnnotationUtils.create("lockMode",
  								createLockMode(source.getLockMode()))
  
  				//
  				);
  
  	}
docs: 8.3.1