aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateAssetData.cs
diff options
context:
space:
mode:
authorSean Dague2008-04-08 13:49:10 +0000
committerSean Dague2008-04-08 13:49:10 +0000
commit214bd204b1a53bd739dd51562075e098ed0ac28c (patch)
tree35f10c0a13e075d35690da495583de2aed93b58c /OpenSim/Data/NHibernate/NHibernateAssetData.cs
parent* Removing lulurun's perl UGAI from core svn, pending a link to an external r... (diff)
downloadopensim-SC_OLD-214bd204b1a53bd739dd51562075e098ed0ac28c.zip
opensim-SC_OLD-214bd204b1a53bd739dd51562075e098ed0ac28c.tar.gz
opensim-SC_OLD-214bd204b1a53bd739dd51562075e098ed0ac28c.tar.bz2
opensim-SC_OLD-214bd204b1a53bd739dd51562075e098ed0ac28c.tar.xz
LLUUID mapper actually appears to work now with
NHibernate for Assets.
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 }