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 75441 - editor did not catch the use of @PersistenceUnit
Summary: editor did not catch the use of @PersistenceUnit
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-24 20:40 UTC by jaswoo
Modified: 2016-07-07 08:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jaswoo 2006-04-24 20:40:56 UTC
Within a Session bean do the following and then deploy the web-application

@PersistenceUnit()
private EntityManager em;

The annotation should be @PersistenceContext not @PersistenceUnit; the use of
@PersistenceUnit causes problems during runtime injection of "em" into the
Sesison bean. 

One post suggest this should be caught by the editor as an error.

J
Comment 1 Sanjeeb Sahoo 2006-04-24 20:52:06 UTC
added myself to "cc"
Comment 2 Martin Adamek 2006-04-25 06:39:03 UTC
Maybe idea for hint?
Comment 3 Tomasz Slota 2006-04-28 14:01:32 UTC
Clearly this is a feature request, changing the issue type to "enhancement"
Comment 4 Jiri Prox 2007-09-17 20:30:28 UTC
Obsolete milestone, please reevaluate
Comment 5 Martin Balin 2016-07-07 08:56:08 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss