From 80759f708b1766b6fd36bbdb6ce69f292e64e2f0 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 16 Feb 2009 19:33:11 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=3166 * Adds estate access list supports to NHibernate data module * Thanks Tommil --- OpenSim/Data/NHibernate/NHibernateRegionData.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Data/NHibernate/NHibernateRegionData.cs') diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs index 78db52d..5af3d1a 100644 --- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs +++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs @@ -63,7 +63,7 @@ namespace OpenSim.Data.NHibernate public void StoreRegionSettings(RegionSettings rs) { - RegionSettings oldRegionSettings = (RegionSettings)manager.Load(typeof(RegionSettings), rs.RegionUUID); + RegionSettings oldRegionSettings = (RegionSettings)manager.Get(typeof(RegionSettings), rs.RegionUUID); if (oldRegionSettings != null) { manager.Update(rs); @@ -76,7 +76,7 @@ namespace OpenSim.Data.NHibernate public RegionSettings LoadRegionSettings(UUID regionUUID) { - RegionSettings regionSettings = (RegionSettings) manager.Load(typeof(RegionSettings), regionUUID); + RegionSettings regionSettings = (RegionSettings) manager.Get(typeof(RegionSettings), regionUUID); if (regionSettings == null) { @@ -96,7 +96,7 @@ namespace OpenSim.Data.NHibernate { try { - SceneObjectPart old = (SceneObjectPart)manager.Load(typeof(SceneObjectPart), p.UUID); + SceneObjectPart old = (SceneObjectPart)manager.Get(typeof(SceneObjectPart), p.UUID); if (old != null) { m_log.InfoFormat("[NHIBERNATE] updating object {0}", p.UUID); @@ -120,7 +120,7 @@ namespace OpenSim.Data.NHibernate try { - Terrain old = (Terrain)manager.Load(typeof(Terrain), t.RegionID); + Terrain old = (Terrain)manager.Get(typeof(Terrain), t.RegionID); if (old != null) { m_log.InfoFormat("[NHIBERNATE] updating terrain {0}", t.RegionID); @@ -279,7 +279,7 @@ namespace OpenSim.Data.NHibernate /// Heightfield data public double[,] LoadTerrain(UUID regionID) { - Terrain t = (Terrain)manager.Load(typeof(Terrain), regionID); + Terrain t = (Terrain)manager.Get(typeof(Terrain), regionID); if (t != null) { return t.Doubles; -- cgit v1.1