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.

Bug 75128 - NamedQuery and NamedNativeQuery info is not populated in model
Summary: NamedQuery and NamedNativeQuery info is not populated in model
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-17 19:31 UTC by Sanjeeb Sahoo
Modified: 2008-01-15 12:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sanjeeb Sahoo 2006-04-17 19:31:36 UTC
They are required for verification.
Comment 1 Sanjeeb Sahoo 2006-04-24 05:29:17 UTC
Initially when I filed this issue, I thought it was simple to fix, but then I
realised that NamedQuery can be placed in two places like this:

@Entity
@NamedQuery(name="foo1", query="...)
public class Employee{...}


as well as
@Entity
@NamedQueries({@NamedQuery(name="bar1", query="...), @NamedQuery(name="bar2",
query="...)})
public class Employee{...}

It is not clear to me, how such cases are dealt. So assigning this to owner of
ORM model.
Comment 2 Marek Fukala 2006-07-27 15:31:17 UTC
AFAIK ORMNNListener doesn't listen to NamedQuery at all. You need to either add
a NNMB mapping or a custom code if the NNMB is not capable to handle the case. I
would probably use JMI for the verification as a workaround.
Comment 3 Petr Jiricka 2007-10-31 01:21:43 UTC
An old issue - Andrei, is this resolved now?
Comment 4 Andrei Badea 2007-10-31 13:37:16 UTC
Not fixed, I didn't know about this requirement. Not hard to fix, but unless it blocks a showstopper issue I see no
point in fixing it for 6.0.
Comment 5 Andrei Badea 2008-01-15 12:31:00 UTC
Closing as wontfix, since I don't see an issue blocked by this one. Please reopen with details.