[jboss-jira] [JBoss JIRA] (WFLY-11495) WildFly 14-15 Create Query

Scott Marlow (Jira) issues at jboss.org
Tue Jan 22 08:27:00 EST 2019


    [ https://issues.jboss.org/browse/WFLY-11495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685906#comment-13685906 ] 

Scott Marlow commented on WFLY-11495:
-------------------------------------

Have you tried enabling the [Hibernate native API bytecode transformer?|http://docs.wildfly.org/15/Developer_Guide.html#hibernate-transformer]

> WildFly 14-15 Create Query
> --------------------------
>
>                 Key: WFLY-11495
>                 URL: https://issues.jboss.org/browse/WFLY-11495
>             Project: WildFly
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 14.0.1.Final, 15.0.0.Final
>            Reporter: Majid Mostafavi
>            Assignee: Scott Marlow
>            Priority: Major
>
> Hi 
> When I use this syntax for create lazy data  loader
>  CriteriaBuilder builder = entityManager.getCriteriaBuilder();
>         CriteriaQuery<{color:#DE350B}X{color}> criteria = builder.createQuery({color:#DE350B}X{color}.class);
>         Root<{color:#DE350B}XDTO{color}> xRoot = criteria.from(XDTO.class);
> .
> .
> .
> .
>   criteria.where(predicate);
>         Query queryResult=entityManager.createQuery(criteria);
>         queryResult.setFirstResult(first);
>         if (pageSize > 0){
>             queryResult.setMaxResults(pageSize);
>         }
> wildfly create query by this syntax
>      select
>         * 
>      from ( {color:#14892c}select  dto item1, select dto item2 from Xroot {color} ) 
>       where
>         rownum <=  



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list