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 180742 - Session Beans for Entity Classes should generate getEntityManager as protected
Summary: Session Beans for Entity Classes should generate getEntityManager as protected
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Andrey Yamkovoy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 09:45 UTC by Petr Jiricka
Modified: 2010-02-17 21:56 UTC (History)
1 user (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 Petr Jiricka 2010-02-15 09:45:34 UTC
When you generate Session Beans for Entity Classes using the wizard, the wizard generates a public method getEntityManager(), in both the AbstractFacade superclass and in the concrete subclasses. 

This method should be protected, as noone outside of the EJB should use it. Another reason is that is breaks the New Web Service from EJB functionality, which generates delegates for all the public methods in the EJB.
Comment 1 Andrey Yamkovoy 2010-02-17 02:29:41 UTC
Fixed in the web-main.
Comment 2 Quality Engineering 2010-02-17 21:56:41 UTC
Integrated into 'main-golden', will be available in build *201002180200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9f5aba2c5e1b
User: Andrey Yamkovoy <kaktus@netbeans.org>
Log: #180742 - Session Beans for Entity Classes should generate getEntityManager as protected