This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | incorrect code generation - entityManager | ||
---|---|---|---|
Product: | guibuilder | Reporter: | barryc <barryc> |
Component: | Binding | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | CC: | abadea |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
barryc
2008-05-28 20:08:53 UTC
Reassigning to "db" for evaluation. Reassigning to persistence - sorry I didn't do this sooner, I was not paying attention to my unevaluated list :( The code is not directly generated from persistence module. Send to form/binding for evaluation. It is not
> entityManager.createQuery("SELECT t FROM table_name t");
but entityManager.createQuery("SELECT t FROM entity_name t");
e.g. the argument is not SQL query, but JPA query. Hence, it is correct to use createQuery, not createNativeQuery.
I don't know why is your application failing in query creation, but an incorrect selection of createQuery method is not
the reason.
|