org.hibernate.search.engine.impl
Class HibernateSessionLoadingInitializer
java.lang.Object
org.hibernate.search.engine.impl.HibernateStatelessInitializer
org.hibernate.search.engine.impl.HibernateSessionLoadingInitializer
- All Implemented Interfaces:
- EntityInitializer
public class HibernateSessionLoadingInitializer
- extends HibernateStatelessInitializer
- implements EntityInitializer
This EntityInitializer is relative to a specific Hibernate Session,
so it's able to attach detached collections to it's Session.
- Author:
- Sanne Grinovero (C) 2011 Red Hat Inc.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateSessionLoadingInitializer
public HibernateSessionLoadingInitializer(SessionImplementor hibernateSession)
initializeCollection
public <T> Collection<T> initializeCollection(Collection<T> value)
- Specified by:
initializeCollection
in interface EntityInitializer
- Overrides:
initializeCollection
in class HibernateStatelessInitializer
- Returns:
- the initialized Collection, to be used on lazily-loading collections
initializeMap
public <K,V> Map<K,V> initializeMap(Map<K,V> value)
- Specified by:
initializeMap
in interface EntityInitializer
- Overrides:
initializeMap
in class HibernateStatelessInitializer
- Returns:
- the initialized Map, to be used on lazily-loading maps
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved