[JBoss JIRA] Created: (JBIDE-9718) Multiple NamedQuery is not read by JPA details where there is NamedQueries after them
by Jiri Peterka (JIRA)
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({(a)javax.persistence.NamedQuery(name = "query3", query = "abcd"),(a)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
13 years, 6 months
[JBoss JIRA] Created: (JBIDE-9536) JPA: take into account hibernate @Column#name or @Columns(*) on attribute column validation
by Dmitry Geraskov (JIRA)
JPA: take into account hibernate @Column#name or @Columns(*) on attribute column validation
-------------------------------------------------------------------------------------------
Key: JBIDE-9536
URL: https://issues.jboss.org/browse/JBIDE-9536
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Hibernate
Affects Versions: 3.3.0.M2
Reporter: Dmitry Geraskov
Assignee: Dmitry Geraskov
Fix For: 3.3.0.M3
Test Case:
1. Create a database table x with column columnOne
2. Create enity for the table with attribute columnTwo
Connect dtp connection and check error near the field appeared (Column 'columnTwo' cannot be resolved on table 'x')
3. Add @javax.persistence.Column(name="columnOne")
OBSERVE: error should disappear
4. change annotation to @org.hibernate.Column(name="columnOne")
FAILURE: error appear again
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months