From f43681510725f5b95fcb864a1f3e4b744fcaf992 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Mon, 7 Apr 2008 23:15:35 +0000
Subject: Refactor InventoryItemBase to do the following: * wrap fields as
Properties * rename some fields/properties to more sensible names * set
style to PropName to match more standard C# approach
---
OpenSim/Data/NHibernate/NHibernateInventoryData.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Data/NHibernate')
diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
index d6cd664..ba1d3e9 100644
--- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
@@ -112,7 +112,7 @@ namespace OpenSim.Data.NHibernate
/// The item to be created
public void addInventoryItem(InventoryItemBase item)
{
- if (!ExistsItem(item.inventoryID)) {
+ if (!ExistsItem(item.ID)) {
using(ISession session = factory.OpenSession()) {
using(ITransaction transaction = session.BeginTransaction()) {
session.Save(item);
@@ -120,7 +120,7 @@ namespace OpenSim.Data.NHibernate
}
}
} else {
- m_log.ErrorFormat("Attempted to add Inventory Item {0} that already exists, updating instead", item.inventoryID);
+ m_log.ErrorFormat("Attempted to add Inventory Item {0} that already exists, updating instead", item.ID);
updateInventoryItem(item);
}
}
@@ -131,7 +131,7 @@ namespace OpenSim.Data.NHibernate
/// The updated item
public void updateInventoryItem(InventoryItemBase item)
{
- if (ExistsItem(item.inventoryID)) {
+ if (ExistsItem(item.ID)) {
using(ISession session = factory.OpenSession()) {
using(ITransaction transaction = session.BeginTransaction()) {
session.Update(item);
@@ -139,7 +139,7 @@ namespace OpenSim.Data.NHibernate
}
}
} else {
- m_log.ErrorFormat("Attempted to add Inventory Item {0} that already exists", item.inventoryID);
+ m_log.ErrorFormat("Attempted to add Inventory Item {0} that already exists", item.ID);
}
}
--
cgit v1.1