Java Reference
In-Depth Information
Then, we need to pick a Resource Package or simply accept the default value of
service . It is a good idea to enter a package name that follows standard package
naming conventions.
When we click on Finish , our RESTful web service code is generated.
Analyzing the generated code
The wizard discussed in the previous section creates a JPA entity for each chosen
table, along with an AbstractFacade class and a Facade class for each generated JPA
entity. The generated code follows the Facade design pattern; in essence, each Facade
class is a wrapper for the JPA code.
See for more
information on the Facade design pattern.
Search WWH ::

Custom Search