* Changes the NHibernate asset mapping and expose FullID on AssetBase for NHibernate
* mikem has seen this patch :)
0.6.3-post-fixes
Justin Clarke Casey 2009-02-09 17:31:03 +00:00
parent 828049ac8f
commit eddcf620d8
2 changed files with 16 additions and 5 deletions

View File

@ -4,11 +4,13 @@
<id name="FullID" column="ID" type="OpenSim.Data.NHibernate.UUIDUserType, OpenSim.Data.NHibernate">
<generator class="assigned" />
</id>
<property name="Type" type="OpenSim.Data.NHibernate.SByteType, OpenSim.Data.NHibernate" />
<property name="Name" type="String" length="64" />
<property name="Description" type="String" length="64" />
<property name="Local" type="boolean" />
<property name="Temporary" type="boolean" />
<property name="Data" type="binary" />
<component name="Metadata">
<property name="Type" type="OpenSim.Data.NHibernate.SByteType, OpenSim.Data.NHibernate" />
<property name="Name" type="String" length="64" />
<property name="Description" type="String" length="64" />
<property name="Local" type="boolean" />
<property name="Temporary" type="boolean" />
</component>
</class>
</hibernate-mapping>

View File

@ -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]