public class HibernatePersistenceAdapter extends Object implements TidePersistenceAdapter
| Constructor and Description |
|---|
HibernatePersistenceAdapter(Session session) |
HibernatePersistenceAdapter(SessionFactory sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
find(Class<?> entityClass,
Serializable id)
Find an entity in the persistence context
|
void |
throwOptimisticLockException(Object entity)
Throw an optimistic locking error
|
public HibernatePersistenceAdapter(SessionFactory sessionFactory)
public HibernatePersistenceAdapter(Session session)
public Object find(Class<?> entityClass, Serializable id)
find in interface TidePersistenceAdapterentityClass - class of the looked up entityid - entity identifierpublic void throwOptimisticLockException(Object entity)
throwOptimisticLockException in interface TidePersistenceAdapterentity - entity instance loaded from the database