The issue can be closed. Thanks Guillaume Smet ! His idea is using code
Query query = em.createQuery( "select n from Noise n" ); query.unwrap( org.hibernate.query.Query.class ).addQueryHint( DIALECT_SPECIFIED_HINT ); query.setHint( DIALECT_SPECIFIED_HINT, true );