mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
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.
29 lines
727 B
C#
29 lines
727 B
C#
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; }
|
|
|
|
}
|
|
}
|