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 91263

Summary: Add support for JPA when generating a Mobile Web Client
Product: javame Reporter: ieising <ieising>
Component: Web ServicesAssignee: Roman Svitanic <rsvitanic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description ieising 2006-12-19 09:07:14 UTC
Hi,

Currently, when I generate a mobile web client, it generates the boiler-plate
code for accessing a website from the MIDlet. But when I want to access a
database using JPA, I need to add the @PersistenceUnit etc to the servlet. But
now when I regenerate the code, because the interface I want to use on the
backend changes, obviously all my JPA code is gone and I have to add it again.

It would be very handy to have a checkbox in the wizard that helps generating
the mobile web client asking me if I want to add JPA support, and then generate
the code to create and propagate an EntityManager and UserTransaction. Pretty
much along the way I can generate CRUD pages in JSF for a specific entity class.

Iwan