[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9718) Multiple NamedQuery is not read by JPA details where there is NamedQueries after them

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Fri Sep 16 09:23:26 EDT 2011


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

Dmitry Geraskov commented on JBIDE-9718:
----------------------------------------

This is how Dali processes the container annotations. I guess hiberante does it in the same way, could you please create the issue in their bugzilla, so they be aware of it.

> Multiple NamedQuery is not read by JPA details where there is NamedQueries after them
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-9718
>                 URL: https://issues.jboss.org/browse/JBIDE-9718
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 3.3.0.M3
>         Environment: jbdevstudio-product-eap-linux-gtk-x86_64-5.0.0.v201109142301R-H31-M3.jar, Fedora 15, 64-bit
>            Reporter: Jiri Peterka
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.M4
>
>
> Try this:
> @NamedQuery(name = "query1", query = "select f from Dog f", readOnly = true, flushMode = ALWAYS,cacheable = true, cacheMode = GET, cacheRegion = "2", fetchSize = 2, timeout = 2)
> @javax.persistence.NamedQuery(name = "query2", query = "select f from Dog f")
> @NamedQueries({@javax.persistence.NamedQuery(name = "query3", query = "abcd"), at javax.persistence.NamedQuery(name = "query4")})
> See in JPA Details, there is only query1, query3, query4. query2 is missing. When last row commented, query2 appears

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list