diff options
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateManager.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateManager.cs | 6 |
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; | |||
31 | using log4net; | 31 | using log4net; |
32 | using NHibernate; | 32 | using NHibernate; |
33 | using NHibernate.Cfg; | 33 | using NHibernate.Cfg; |
34 | using NHibernate.Mapping.Attributes; | ||
35 | using NHibernate.Tool.hbm2ddl; | 34 | using NHibernate.Tool.hbm2ddl; |
36 | using OpenMetaverse; | 35 | using OpenMetaverse; |
37 | using Environment = NHibernate.Cfg.Environment; | 36 | using 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 | ||