aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateAssetData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateAssetData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateAssetData.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateAssetData.cs b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
index 4f05855..cc018dd 100644
--- a/OpenSim/Data/NHibernate/NHibernateAssetData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateAssetData.cs
@@ -67,11 +67,11 @@ namespace OpenSim.Data.NHibernate
67 cfg.AddAssembly("OpenSim.Data.NHibernate"); 67 cfg.AddAssembly("OpenSim.Data.NHibernate");
68 68
69 HbmSerializer.Default.Validate = true; 69 HbmSerializer.Default.Validate = true;
70// using ( System.IO.MemoryStream stream = 70 using ( System.IO.MemoryStream stream =
71// HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly())) 71 HbmSerializer.Default.Serialize(System.Reflection.Assembly.GetExecutingAssembly()))
72// cfg.AddInputStream(stream); 72 cfg.AddInputStream(stream);
73 73
74// new SchemaExport(cfg).Create(true, true); 74 // new SchemaExport(cfg).Create(true, true);
75 75
76 factory = cfg.BuildSessionFactory(); 76 factory = cfg.BuildSessionFactory();
77 } 77 }
@@ -80,7 +80,7 @@ namespace OpenSim.Data.NHibernate
80 { 80 {
81 using(ISession session = factory.OpenSession()) { 81 using(ISession session = factory.OpenSession()) {
82 try { 82 try {
83 return session.Load(typeof(AssetBase), uuid.ToString()) as AssetBase; 83 return session.Load(typeof(AssetBase), uuid) as AssetBase;
84 } catch { 84 } catch {
85 return null; 85 return null;
86 } 86 }