aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
diff options
context:
space:
mode:
authorCharles Krinke2009-01-11 18:24:16 +0000
committerCharles Krinke2009-01-11 18:24:16 +0000
commit40f34aeffd64e2aa81cecb2e861f60d6e8886198 (patch)
tree5d0059eb7aa70799c8239bb273efc997138cabb5 /OpenSim/Data/NHibernate/NHibernateInventoryData.cs
parentThank you kindly, Tlaukkan (Tommil) for a patch that: (diff)
downloadopensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.zip
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.gz
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.bz2
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.xz
Thank you kindly, Tlaukkan (Tommil) for a patch that:
Fixed all NHibernate unit tests by implementing missing persistency methods, tables, columns and fixing bugs in the existing implementation. Two minor changes to classes outside NHibernate module: Added Scene instantiation for SceneObjectGroup in OpenSim.Data.Tests.BasicRegionTest as this was required by the NHibernate persistency. In the process added also mock constructor to Scene which only populates RegionInfo in the scene which is used by ScenePart.RegionUUID. NHibernate module is still in experimental state and has not been tested at opensim region or ugaim runtime configuration. Adding unit tests to build is not yet advisable nor using NHibernate module in any production setup.
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateInventoryData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateInventoryData.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
index dc98d11..e648396 100644
--- a/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateInventoryData.cs
@@ -344,7 +344,14 @@ namespace OpenSim.Data.NHibernate
344 // See IInventoryDataPlugin 344 // See IInventoryDataPlugin
345 public List<InventoryFolderBase> getFolderHierarchy(UUID parentID) 345 public List<InventoryFolderBase> getFolderHierarchy(UUID parentID)
346 { 346 {
347 if (parentID == UUID.Zero)
348 {
349 // Zero UUID is not a real parent folder.
350 return new List<InventoryFolderBase>();
351 }
352
347 List<InventoryFolderBase> folders = new List<InventoryFolderBase>(); 353 List<InventoryFolderBase> folders = new List<InventoryFolderBase>();
354
348 getInventoryFolders(ref folders, parentID); 355 getInventoryFolders(ref folders, parentID);
349 356
350 for (int i = 0; i < folders.Count; i++) 357 for (int i = 0; i < folders.Count; i++)