diff options
author | Charles Krinke | 2009-02-14 19:47:02 +0000 |
---|---|---|
committer | Charles Krinke | 2009-02-14 19:47:02 +0000 |
commit | a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d (patch) | |
tree | 7e90740b7ea86922db55905a34e3b6e065cb6041 /OpenSim/Data/NHibernate/NHibernateUserData.cs | |
parent | Add an override for the % operator. (diff) | |
download | opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.zip opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.gz opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.bz2 opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.xz |
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.
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateUserData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateUserData.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index 7dfdcb5..3f1f260 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs | |||
@@ -102,7 +102,7 @@ namespace OpenSim.Data.NHibernate | |||
102 | if (!ExistsUser(profile.ID)) | 102 | if (!ExistsUser(profile.ID)) |
103 | { | 103 | { |
104 | m_log.InfoFormat("[NHIBERNATE] AddNewUserProfile {0}", profile.ID); | 104 | m_log.InfoFormat("[NHIBERNATE] AddNewUserProfile {0}", profile.ID); |
105 | manager.Save(profile); | 105 | manager.Insert(profile); |
106 | // Agent should not be saved according to BasicUserTest.T015_UserPersistency() | 106 | // Agent should not be saved according to BasicUserTest.T015_UserPersistency() |
107 | // SetAgentData(profile.ID, profile.CurrentAgent); | 107 | // SetAgentData(profile.ID, profile.CurrentAgent); |
108 | 108 | ||
@@ -169,7 +169,7 @@ namespace OpenSim.Data.NHibernate | |||
169 | manager.Delete(old); | 169 | manager.Delete(old); |
170 | } | 170 | } |
171 | 171 | ||
172 | manager.Save(agent); | 172 | manager.Insert(agent); |
173 | 173 | ||
174 | } | 174 | } |
175 | 175 | ||
@@ -245,11 +245,11 @@ namespace OpenSim.Data.NHibernate | |||
245 | { | 245 | { |
246 | if (!FriendRelationExists(ownerId,friendId)) | 246 | if (!FriendRelationExists(ownerId,friendId)) |
247 | { | 247 | { |
248 | manager.Save(new UserFriend(UUID.Random(), ownerId, friendId, perms)); | 248 | manager.Insert(new UserFriend(UUID.Random(), ownerId, friendId, perms)); |
249 | } | 249 | } |
250 | if (!FriendRelationExists(friendId, ownerId)) | 250 | if (!FriendRelationExists(friendId, ownerId)) |
251 | { | 251 | { |
252 | manager.Save(new UserFriend(UUID.Random(), friendId, ownerId, perms)); | 252 | manager.Insert(new UserFriend(UUID.Random(), friendId, ownerId, perms)); |
253 | } | 253 | } |
254 | return; | 254 | return; |
255 | } | 255 | } |
@@ -426,7 +426,7 @@ namespace OpenSim.Data.NHibernate | |||
426 | } | 426 | } |
427 | else | 427 | else |
428 | { | 428 | { |
429 | manager.Save(appearance); | 429 | manager.Insert(appearance); |
430 | } | 430 | } |
431 | } | 431 | } |
432 | 432 | ||