Package com.im.imjutil.query

Examples of com.im.imjutil.query.NativeQuery


      // Cria a consulta
      String queryString = query.createQuery(filters);
     
      javax.persistence.Query queryJPA;
      if (query instanceof NativeQuery) {
        NativeQuery nativeQuery = (NativeQuery) query;
        Class<?> target = getTargetClass(nativeQuery);
       
        if (target != null)
          queryJPA = manager.createNativeQuery(queryString, target);
        else
View Full Code Here


      // Cria a consulta
      String queryString = query.createQuery(filters);
     
      javax.persistence.Query queryJPA;
      if (query instanceof NativeQuery) {
        NativeQuery nativeQuery = (NativeQuery) query;
        Class<?> target = (nativeQuery.getTarget() != null) ? nativeQuery.getTarget() : this.clazz;
        queryJPA = manager.createNativeQuery(queryString, target);
      } else {
        queryJPA = manager.createQuery(queryString);
      }
     
View Full Code Here

TOP

Related Classes of com.im.imjutil.query.NativeQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.