mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Point checkin. Hibernate is currently beating me up by not doing
what I expect when trying to determine the concrete type of a polymorphic type. Some major surgery seems to be in order. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@2927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,25 @@ public class HibernateHelper
|
||||
|
||||
static
|
||||
{
|
||||
Reset();
|
||||
}
|
||||
|
||||
public static SessionFactory GetSessionFactory()
|
||||
{
|
||||
return fgFactory;
|
||||
}
|
||||
|
||||
public static Configuration GetConfiguration()
|
||||
{
|
||||
return fgCfg;
|
||||
}
|
||||
|
||||
public static void Reset()
|
||||
{
|
||||
if (fgFactory != null)
|
||||
{
|
||||
fgFactory.close();
|
||||
}
|
||||
try
|
||||
{
|
||||
fgCfg = new Configuration();
|
||||
@@ -42,14 +61,4 @@ public class HibernateHelper
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
public static SessionFactory GetSessionFactory()
|
||||
{
|
||||
return fgFactory;
|
||||
}
|
||||
|
||||
public static Configuration GetConfiguration()
|
||||
{
|
||||
return fgCfg;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user