-
Book Overview & Buying
-
Table Of Contents
Google Web Toolkit 2 Application Development Cookbook
By :
Java Persistence API (JPA) is a framework that is used to manage relational data in Java EE and Java SE applications. JPA provides a Plain Old Java Object (POJO) persistence model for object relational mapping.
In the perspective of the GWT, JPA will provide data operations on the server based on the client request. If a relational database is used in the application, JPA will manage the relational data on the server. It enables the developer to define the database CRUD (Create, Read, Update, and Delete) functions in a purely object-oriented fashion.
In the GWT application, following are some of the uses of JPA:
To create entity classes
To create the EntityManagerFactory
To create the EntityManager
To persist, find, merge, and remove entities
To execute native SQL
Change the font size
Change margin width
Change background colour