work in progress on nhibernate
parent
0106f96716
commit
309e479ac4
|
@ -1,4 +1,4 @@
|
||||||
CREATE TABLE `prims` (
|
CREATE TABLE `Prims` (
|
||||||
`ParentID` int(11) default NULL,
|
`ParentID` int(11) default NULL,
|
||||||
`CreationDate` int(11) default NULL,
|
`CreationDate` int(11) default NULL,
|
||||||
`Name` varchar(255) default NULL,
|
`Name` varchar(255) default NULL,
|
||||||
|
@ -48,4 +48,35 @@ CREATE TABLE `prims` (
|
||||||
PRIMARY KEY (`UUID`),
|
PRIMARY KEY (`UUID`),
|
||||||
KEY `prims_regionuuid` (`RegionID`),
|
KEY `prims_regionuuid` (`RegionID`),
|
||||||
KEY 'prims_parentuuid' ('ParentUUID')
|
KEY 'prims_parentuuid' ('ParentUUID')
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
CREATE TABLE `PrimShapes` (
|
||||||
|
`Shape` int(11) default NULL,
|
||||||
|
`ScaleX` float default NULL,
|
||||||
|
`ScaleY` float default NULL,
|
||||||
|
`ScaleZ` float default NULL,
|
||||||
|
`PCode` int(11) default NULL,
|
||||||
|
`PathBegin` int(11) default NULL,
|
||||||
|
`PathEnd` int(11) default NULL,
|
||||||
|
`PathScaleX` int(11) default NULL,
|
||||||
|
`PathScaleY` int(11) default NULL,
|
||||||
|
`PathShearX` int(11) default NULL,
|
||||||
|
`PathShearY` int(11) default NULL,
|
||||||
|
`PathSkew` int(11) default NULL,
|
||||||
|
`PathCurve` int(11) default NULL,
|
||||||
|
`PathRadiusOffset` int(11) default NULL,
|
||||||
|
`PathRevolutions` int(11) default NULL,
|
||||||
|
`PathTaperX` int(11) default NULL,
|
||||||
|
`PathTaperY` int(11) default NULL,
|
||||||
|
`PathTwist` int(11) default NULL,
|
||||||
|
`PathTwistBegin` int(11) default NULL,
|
||||||
|
`ProfileBegin` int(11) default NULL,
|
||||||
|
`ProfileEnd` int(11) default NULL,
|
||||||
|
`ProfileCurve` int(11) default NULL,
|
||||||
|
`ProfileHollow` int(11) default NULL,
|
||||||
|
`State` int(11) default NULL,
|
||||||
|
`Texture` longblob,
|
||||||
|
`ExtraParams` longblob,
|
||||||
|
`UUID` char(36) NOT NULL default '',
|
||||||
|
PRIMARY KEY (`UUID`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||||
<class name="OpenSim.Data.NHibernate.NHPrim, OpenSim.Data.NHibernate" table="Prims" lazy="false">
|
<class name="OpenSim.Region.Environment.Scene.SceneObjectPart, OpenSim.Region.Environment.Scene" table="Prims" lazy="false">
|
||||||
<id name="UUID" column="ID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate">
|
<id name="UUID" column="ID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate">
|
||||||
<generator class="assigned" />
|
<generator class="assigned" />
|
||||||
</id>
|
</id>
|
||||||
<property name="ParentID" type="System.UInt32" />
|
<property name="ParentID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate" />
|
||||||
<property name="RegionID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate" />
|
<property name="RegionID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate" />
|
||||||
<property name="CreationDate" type="System.Int32" />
|
<property name="CreationDate" type="System.Int32" />
|
||||||
<property name="Name" type="String" length="255" />
|
<property name="Name" type="String" length="255" />
|
||||||
|
@ -75,4 +75,10 @@
|
||||||
<column name="SitTargetOrientW" />
|
<column name="SitTargetOrientW" />
|
||||||
</property>
|
</property>
|
||||||
</class>
|
</class>
|
||||||
|
|
||||||
|
<class name="OpenSim.Framework.PrimitiveBaseShape, OpenSim.Framework" table="PrimShapes" lazy="false">
|
||||||
|
<id name="UUID" column="ID" type="OpenSim.Data.NHibernate.LLUUIDUserType, OpenSim.Data.NHibernate">
|
||||||
|
<generator class="assigned" />
|
||||||
|
</id>
|
||||||
|
</class>
|
||||||
</hibernate-mapping>
|
</hibernate-mapping>
|
Loading…
Reference in New Issue