corner imagecorner image FeaturesPluginsPlatformDocs & SupportCommunityPartners


[Bug 207993] multiple problems with rest tutorial

  • From:
  • To:
  • Subject: [Bug 207993] multiple problems with rest tutorial
  • Date: Wed, 01 Feb 2012 21:08:07 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=207993

--- Comment #10 from Jeffrey Rubinoff 
< >
 2012-02-01 21:08:07 UTC ---
Denis, two questions:
1. I had to change the last EE5 client, the one that uses addresses from the
database. The original code, which does not compile, was:

Customer c = getEntity(Customer.class);

There's no getEntity method now, so I used this, based on the EE6 client:

Customer c =
getEntityManagerFactory().createEntityManager().find(Customer.class, 1);

Is that OK?

2. Is my explanatory text OK?

"The Google map of the Menlo Park address appears for all customers in the
database. To display the Google maps of the actual addresses of the customers,
create an instance of Customer and set the address equal to a concatenation of
address variables for that instance of Customer.
Create an instance of Customer by calling the generic find() method from an
instance of EntityManager. For an EE5 service you need to create the
EntityManager. For an EE6 service, you can call getEntityManager() from the
abstract facade. The generic find() method requires explicit argument type
casting to Object and an explicit entity id. The following code displays the
map location of the customer with id number 1 (changes in bold):"

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

<Possible follow-up(s)>

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

johnjullion 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

johnjullion 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/01/2012

[Bug 207993] multiple problems with rest tutorial

johnjullion 02/01/2012

[Bug 207993] multiple problems with rest tutorial

ads 02/02/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/02/2012

[Bug 207993] multiple problems with rest tutorial

sj-nb 02/02/2012

[Bug 207993] multiple problems with rest tutorial

sj-nb 02/02/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/03/2012

[Bug 207993] multiple problems with rest tutorial

jeff_rubinoff 02/04/2012

Project Features

About this Project

Usersguide was started in November 2009, is owned by kganfield, and has 48 members.
 
 
Close
loading
Please Confirm
Close