PersistenceContext « Glassfish « JPA Q&A





1. @PersistenceContext and static property    stackoverflow.com

now its time to ask noob question about JPA. I've got a simple app, so want to make a simple dao class for all my entities.

import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.hibernate.Session;

public ...