public final class DataAccessUtils extends Object
Modifier and Type | Method and Description |
---|---|
static net.sf.hibernate.Session |
downgrade(org.hibernate.Session session)
Get the hibernate Session object with the v2 interface and hibernate implementation.
|
static net.sf.hibernate.SessionFactory |
downgrade(org.hibernate.SessionFactory sessionFactory)
Get a reference to the v2 SessionFactory interface.
|
static org.hibernate.Session |
getSession(org.hibernate.SessionFactory sessionFactory)
Returns the current session or creates one if one does not exist.
|
public static org.hibernate.Session getSession(org.hibernate.SessionFactory sessionFactory)
SessionFactoryUtils.getSession(net.sf.hibernate.SessionFactory, boolean)
@Nullable public static net.sf.hibernate.SessionFactory downgrade(@Nullable org.hibernate.SessionFactory sessionFactory)
Copyright © 2003–2017 Atlassian. All rights reserved.
View cookie preferences