net.craftforge.essential.example.resources
Class PersistentResource<T>

java.lang.Object
  extended by net.craftforge.essential.example.resources.PersistentResource<T>
Direct Known Subclasses:
CustomerResource, OrderingResource, OrderLineResource, ProductResource, ShipmentResource, SupplierResource

public class PersistentResource<T>
extends Object

A persistent resource has access to an entity manager and other convenient data access objects.

Since:
30.08.11
Author:
Christian Bick

Constructor Summary
PersistentResource()
           
 
Method Summary
protected  javax.persistence.EntityManager createEntityManager()
           
protected  CrudDao<T> getCrudDao()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentResource

public PersistentResource()
Method Detail

getCrudDao

protected CrudDao<T> getCrudDao()

createEntityManager

protected javax.persistence.EntityManager createEntityManager()


Copyright © 2011. All Rights Reserved.