public static Session currentSession() throws PersistenceException {
Session s = (Session) session.get();
if (s == null) {
s = PersistenceManager.openSession();
if (log.isDebugEnabled()) {
log.debug("Opened hibernate session.");
} session.set(s); } return s;
}
}This is a litte excerpt from hibernate HOWTO: i have't found the class PersistenceManager in any package.
Can anyone post same example of PersistenceManager so i can compare with my own
Thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
