From 40f34aeffd64e2aa81cecb2e861f60d6e8886198 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 11 Jan 2009 18:24:16 +0000 Subject: 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. --- OpenSim/Data/NHibernate/UserFriend.cs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 OpenSim/Data/NHibernate/UserFriend.cs (limited to 'OpenSim/Data/NHibernate/UserFriend.cs') diff --git a/OpenSim/Data/NHibernate/UserFriend.cs b/OpenSim/Data/NHibernate/UserFriend.cs new file mode 100644 index 0000000..c16b3c8 --- /dev/null +++ b/OpenSim/Data/NHibernate/UserFriend.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Text; +using OpenMetaverse; + +namespace OpenSim.Data.NHibernate +{ + public class UserFriend + { + public UserFriend() + { + } + + public UserFriend(UUID userFriendID, UUID ownerID, UUID friendID, uint friendPermissions) + { + this.UserFriendID = userFriendID; + this.OwnerID = ownerID; + this.FriendID = friendID; + this.FriendPermissions = friendPermissions; + } + + public UUID UserFriendID { get; set; } + public UUID OwnerID { get; set; } + public UUID FriendID { get; set; } + public uint FriendPermissions { get; set; } + + } +} -- cgit v1.1