aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-04 20:48:08 +0000
committerJustin Clarke Casey2008-12-04 20:48:08 +0000
commitbdee86563cfce5211f182b78e64503a05fc7ffa1 (patch)
tree9b1e7e941e787d36f2248ff4b57f101a779351a6 /OpenSim/Data/NHibernate/NHibernateManager.cs
parent* Apply http://opensimulator.org/mantis/view.php?id=2750 with a small tweak. (diff)
downloadopensim-SC_OLD-bdee86563cfce5211f182b78e64503a05fc7ffa1.zip
opensim-SC_OLD-bdee86563cfce5211f182b78e64503a05fc7ffa1.tar.gz
opensim-SC_OLD-bdee86563cfce5211f182b78e64503a05fc7ffa1.tar.bz2
opensim-SC_OLD-bdee86563cfce5211f182b78e64503a05fc7ffa1.tar.xz
* Check in another patch from http://opensimulator.org/mantis/view.php?id=2710
* This allows removal of the old NHiberate.Mapping.Attributes.dll * Also add in the files I forgot about last time. Doh!
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateManager.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateManager.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateManager.cs b/OpenSim/Data/NHibernate/NHibernateManager.cs
index 36d84e2..46840ac 100644
--- a/OpenSim/Data/NHibernate/NHibernateManager.cs
+++ b/OpenSim/Data/NHibernate/NHibernateManager.cs
@@ -31,7 +31,6 @@ using System.IO;
31using log4net; 31using log4net;
32using NHibernate; 32using NHibernate;
33using NHibernate.Cfg; 33using NHibernate.Cfg;
34using NHibernate.Mapping.Attributes;
35using NHibernate.Tool.hbm2ddl; 34using NHibernate.Tool.hbm2ddl;
36using OpenMetaverse; 35using OpenMetaverse;
37using Environment = NHibernate.Cfg.Environment; 36using Environment = NHibernate.Cfg.Environment;
@@ -77,11 +76,6 @@ namespace OpenSim.Data.NHibernate
77 //exp.SetOutputFile("nameofthefile.sql"); 76 //exp.SetOutputFile("nameofthefile.sql");
78 //exp.Create(false, true); 77 //exp.Create(false, true);
79 78
80 HbmSerializer.Default.Validate = true;
81 using (MemoryStream stream =
82 HbmSerializer.Default.Serialize(Assembly.GetExecutingAssembly()))
83 cfg.AddInputStream(stream);
84
85 factory = cfg.BuildSessionFactory(); 79 factory = cfg.BuildSessionFactory();
86 session = factory.OpenSession(); 80 session = factory.OpenSession();
87 81