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 173984 - Rest services from Entity Classes wizard generates old fashioned code
Summary: Rest services from Entity Classes wizard generates old fashioned code
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-07 15:11 UTC by Milan Kuchtiak
Modified: 2010-05-20 12:31 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 Milan Kuchtiak 2009-10-07 15:11:06 UTC
In Java EE 6 web project there is no reason to have PersistenceService class.
An EntityManager instance can be injected to session bean(stateless), which can be part of web application in Java EE 6. 

The generated code should be changed, and radically simplified, to use new Java EE 6 features, like the code generated
in Session Beans from Entity Classes.

Now Netbeans is showing bad practices in Java EE 6 projects.
Comment 2 Quality Engineering 2009-10-14 11:00:21 UTC
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/14f9a5372b0b
User: mkuchtiak@netbeans.org
Log: #173984: Rest From Entities : generate Java EE 6 code
Comment 3 Jaroslav Pospisil 2010-05-20 12:31:28 UTC
v.