From eddcf620d874263b7fccc07623a4d37e7478532a Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 9 Feb 2009 17:31:03 +0000 Subject: * Apply http://opensimulator.org/mantis/view.php?id=3080 * Changes the NHibernate asset mapping and expose FullID on AssetBase for NHibernate * mikem has seen this patch :) --- OpenSim/Framework/AssetBase.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Framework/AssetBase.cs') diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs index f9c9457..88ac4a6 100644 --- a/OpenSim/Framework/AssetBase.cs +++ b/OpenSim/Framework/AssetBase.cs @@ -61,6 +61,15 @@ namespace OpenSim.Framework get { return _metadata; } set { _metadata = value; } } + + // We expose FullID here because the NHibernate mappers require a + // property on the AssetBase class for its primary key (see + // OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml). + public UUID FullID + { + get { return Metadata.FullID; } + set { Metadata.FullID = value; } + } } [Serializable] -- cgit v1.1