From a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 14 Feb 2009 19:47:02 +0000 Subject: Thank you kindly, TLaukkan (Tommil) for a patch that: * Created value object for EstateRegionLink for storing the estate region relationship. * Refactored slightly NHibernateManager and NHibernateXXXXData implementations for accesing nhibernate generated ID on insert. ** Changed NHibernateManager.Save method name to Insert as it does Insert. ** Changed NHibernateManager.Save return value object as ID can be both UUID and uint currently. ** Changed NHibernateManager.Load method Id parameter to object as it can be both UUID and uint. * Created NHibernateEstateData implementation. This is the actual estate storage. * Created NHibernate mapping files for both EstateSettings and EstateRegionLink * Created MigrationSyntaxDifferences.txt files to write notes about differences in migration scripts between different databases. * Created estate storage migration scripts for all four databases. * Created estate unit test classes for all four databases. * Updated one missing field to BasicEstateTest.cs * Tested NHibernate unit tests with NUnit GUI. Asset databases fail but that is not related to this patch. * Tested build with both Visual Studio and nant. * Executed build tests with nant succesfully. --- OpenSim/Data/Tests/BasicEstateTest.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Data/Tests') diff --git a/OpenSim/Data/Tests/BasicEstateTest.cs b/OpenSim/Data/Tests/BasicEstateTest.cs index 24c25ec..d0f7a8b 100644 --- a/OpenSim/Data/Tests/BasicEstateTest.cs +++ b/OpenSim/Data/Tests/BasicEstateTest.cs @@ -73,6 +73,7 @@ namespace OpenSim.Data.Tests double sunPosition = 7; bool allowVoice = true; bool allowDirectTeleport = true; + bool resetHomeOnTeleport = true; bool denyAnonymous = true; bool denyIdentified = true; bool denyTransacted = true; @@ -103,6 +104,7 @@ namespace OpenSim.Data.Tests es.SunPosition = sunPosition; es.AllowVoice = allowVoice; es.AllowDirectTeleport = allowDirectTeleport; + es.ResetHomeOnTeleport = resetHomeOnTeleport; es.DenyAnonymous = denyAnonymous; es.DenyIdentified = denyIdentified; es.DenyTransacted = denyTransacted; @@ -133,6 +135,7 @@ namespace OpenSim.Data.Tests Assert.That(sunPosition, Is.EqualTo(nes.SunPosition)); Assert.That(allowVoice, Is.EqualTo(nes.AllowVoice)); Assert.That(allowDirectTeleport, Is.EqualTo(nes.AllowDirectTeleport)); + Assert.That(resetHomeOnTeleport, Is.EqualTo(nes.ResetHomeOnTeleport)); Assert.That(denyAnonymous, Is.EqualTo(nes.DenyAnonymous)); Assert.That(denyIdentified, Is.EqualTo(nes.DenyIdentified)); Assert.That(denyTransacted, Is.EqualTo(nes.DenyTransacted)); -- cgit v1.1