![]() |
Woodstock Dataprovider Entity Example |
The project was updated using NetBeans 6.5.1.
The code for the project can be found on Bitbucket here: WoodstockJPAApplication
![]() |
Woodstock Dataprovider Entity Example |
TypedQuery<T>
in a JAX-RS (Jersey) application. The service implementation utilizes a @Stateless session bean to handle the transactions, and scale the application. The application was developed using NetBeans, and GlassFish 3.1.2.CriteriaQuery<T>
provide additional safety and functionality that was not available in Java EE5 and JPA 1.0.Serializable
, you should take the time to generate a unique serialVersionUID
for the class. By default, the IDE will add a serialVersionUID
which is defined as 1L.This is a rather poor substitute for doing it correctly. The serialVersionUID
is extremely important in Web Development (Session scoped beans must be Serializable
), and in Java Persistence API (JPA) which needs to be able to serialize entities.