diff options
author | Justin Clarke Casey | 2008-12-04 20:48:08 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-12-04 20:48:08 +0000 |
commit | bdee86563cfce5211f182b78e64503a05fc7ffa1 (patch) | |
tree | 9b1e7e941e787d36f2248ff4b57f101a779351a6 /OpenSim/Data/NHibernate/NHibernateManager.cs | |
parent | * Apply http://opensimulator.org/mantis/view.php?id=2750 with a small tweak. (diff) | |
download | opensim-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.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 | ||