final JAnnotationUse nnqlst = c.implClass.annotate( cm.ref( javax.persistence.NamedNativeQueries.class ) );
final JAnnotationArrayMember value = nnqlst.paramArray( "value" );
for ( NamedNativeQuery q : entity.getNamedNativeQuery() )
{
final JAnnotationUse qa = value.annotate( cm.ref( javax.persistence.NamedNativeQuery.class ) );
qa.param( "name", q.getName() );
qa.param( "query", q.getQuery() );
if ( q.getResultClass() != null )
{
qa.param( "resultClass", cm.ref( q.getResultClass() ) );