Class JPAAuthorDAO

  • All Implemented Interfaces:
    AuthorDAO

    public class JPAAuthorDAO
    extends Object
    implements AuthorDAO
    This class implements a DAO using javax.persistence.EntityManager. Most of the work of mapping the objects to the database is being performed in either the @Entity class or in a orm.xml descriptor file. The caller of this object must manage the transaction scope. The EntityManager is being injected into the DAO at the start of the overall transaction.