Minahito
minah****@users*****
2006年 10月 14日 (土) 23:55:26 JST
Index: xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<cubson-mapping> + <class name="imagebody"> + <id name="image_id" type="XOBJ_DTYPE_INT" column="image_id" /> + + <property name="image_body" type="XOBJ_DTYPE_TEXT" column="image_body" not-null="true" /> + <one-to-one name="mImageBody" column="image_id" class="Entity.imagebody" /> + </class> +</cubson-mapping> \ No newline at end of file Index: xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<cubson-mapping> + <class name="image"> + <id name="image_id" type="XOBJ_DTYPE_INT" column="image_id"> + <generator type="increment" /> + </id> + <property name="image_name" type="XOBJ_DTYPE_STRING" column="image_name" not-null="true" length="30" /> + <property name="image_nicename" type="XOBJ_DTYPE_STRING" column="image_nicename" not-null="true" length="255" /> + <property name="image_mimetype" type="XOBJ_DTYPE_STRING" column="image_mimetype" not-null="true" length="30" /> + <property name="image_created" type="XOBJ_DTYPE_INT" column="image_created" not-null="true" default="0" /> + <property name="image_display" type="XOBJ_DTYPE_BOOL" column="image_display" not-null="true" default="0" /> + <property name="image_weight" type="XOBJ_DTYPE_INT" column="image_weight" not-null="true" default="0" /> + <property name="imgcat_id" type="XOBJ_DTYPE_INT" column="imgcat_id" not-null="true" default="0" /> + <many-to-one name="mImageCategory" column="imgcat_id" class="Entity.imagecategory" /> + <one-to-one name="mImageBody" column="image_id" class="Entity.imagebody" /> + </class> +</cubson-mapping> \ No newline at end of file Index: xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<cubson-mapping> + <class name="imagecategory"> + <id name="imgcat_id" type="XOBJ_DTYPE_INT" column="imgcat_id"> + <generator type="increment" /> + </id> + <property name="imgcat_name" type="XOBJ_DTYPE_STRING" column="imgcat_name" not-null="true" length="100" /> + <property name="imgcat_maxsize" type="XOBJ_DTYPE_INT" column="imgcat_maxsize" not-null="true" default="50000" /> + <property name="imgcat_maxwidth" type="XOBJ_DTYPE_INT" column="imgcat_maxwidth" not-null="true" default="120" /> + <property name="imgcat_maxheight" type="XOBJ_DTYPE_INT" column="imgcat_maxheight" not-null="true" default="120" /> + <property name="imgcat_display" type="XOBJ_DTYPE_BOOL" column="imgcat_display" not-null="true" default="1" /> + <property name="imgcat_weight" type="XOBJ_DTYPE_INT" column="imgcat_weight" not-null="true" default="0" /> + <property name="imgcat_type" type="XOBJ_DTYPE_STRING" column="imgcat_type" not-null="true" length="1" default="C" /> + <property name="imgcat_storetype" type="XOBJ_DTYPE_STRING" column="imgcat_storetype" not-null="true" length="5" default="file" /> + <set name="mImage"> + <key> + <column name="imagecat_id" /> + </key> + <one-to-many class="Entity.image" /> + </set> + </class> +</cubson-mapping> \ No newline at end of file