diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateEstateData.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateEstateData.cs b/OpenSim/Data/NHibernate/NHibernateEstateData.cs index 3d74135..b16f6e1 100644 --- a/OpenSim/Data/NHibernate/NHibernateEstateData.cs +++ b/OpenSim/Data/NHibernate/NHibernateEstateData.cs | |||
@@ -89,7 +89,7 @@ namespace OpenSim.Data.NHibernate | |||
89 | // Ensure that estate settings exist for the link | 89 | // Ensure that estate settings exist for the link |
90 | if (link != null) | 90 | if (link != null) |
91 | { | 91 | { |
92 | if (manager.Load(typeof(EstateSettings), link.EstateID) == null) | 92 | if (manager.GetWithStatefullSession(typeof(EstateSettings), link.EstateID) == null) |
93 | { | 93 | { |
94 | // Delete broken link | 94 | // Delete broken link |
95 | manager.Delete(link); | 95 | manager.Delete(link); |
@@ -116,11 +116,11 @@ namespace OpenSim.Data.NHibernate | |||
116 | link.EstateRegionLinkID = UUID.Random(); | 116 | link.EstateRegionLinkID = UUID.Random(); |
117 | link.RegionID = regionID; | 117 | link.RegionID = regionID; |
118 | link.EstateID = estateID; | 118 | link.EstateID = estateID; |
119 | manager.Insert(link); | 119 | manager.InsertWithStatefullSession(link); |
120 | } | 120 | } |
121 | 121 | ||
122 | // Load estate settings according to the existing or created link. | 122 | // Load estate settings according to the existing or created link. |
123 | return (EstateSettings)manager.Load(typeof(EstateSettings), link.EstateID); | 123 | return (EstateSettings)manager.GetWithStatefullSession(typeof(EstateSettings), link.EstateID); |
124 | } | 124 | } |
125 | 125 | ||
126 | public void StoreEstateSettings(EstateSettings estateSettings) | 126 | public void StoreEstateSettings(EstateSettings estateSettings) |
@@ -128,7 +128,7 @@ namespace OpenSim.Data.NHibernate | |||
128 | // Estates are always updated when stored. | 128 | // Estates are always updated when stored. |
129 | // Insert is always done via. load method as with the current API | 129 | // Insert is always done via. load method as with the current API |
130 | // this is explicitly the only way to create region link. | 130 | // this is explicitly the only way to create region link. |
131 | manager.Update(estateSettings); | 131 | manager.UpdateWithStatefullSession(estateSettings); |
132 | } | 132 | } |
133 | 133 | ||
134 | #endregion | 134 | #endregion |