主题 : jspgou的jc_standard_type表意思?
级别: 解元
UID: 91339
积分:252 加为好友
威望: 10 精华: 0
主题:26 回复:115
注册时间:2016-08-03
在线时长:0
1#   发表于:2016-12-28 11:52:05  IP:59.30.*.*
jc_standard_type这个是什么表呢?字段都叫什么名字呢?
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2016-12-28 11:56:35  IP:115.234.*.*
商品规格类型表
1
级别: 解元
UID: 91339
积分:252 加为好友
威望: 10 精华: 0
主题:26 回复:115
注册时间:2016-08-03
在线时长:0
3#   发表于:2016-12-28 14:52:24  IP:59.30.*.*
回复第2楼jc_shop_category_property   jspgou里面的这个是不是叫商品类型属性表?
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
4#   发表于:2016-12-28 14:53:00  IP:115.234.*.*
是的
1
级别: 解元
UID: 91339
积分:252 加为好友
威望: 10 精华: 0
主题:26 回复:115
注册时间:2016-08-03
在线时长:0
5#   发表于:2016-12-28 15:03:13  IP:59.30.*.*
回复第4楼 shop_category_property在哪个*类里面?
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
6#   发表于:2016-12-28 15:05:01  IP:115.234.*.*
/jspgou/src/com/jspgou/cms/entity/hbm/Category.hbm.xml
1
级别: 解元
UID: 91339
积分:252 加为好友
威望: 10 精华: 0
主题:26 回复:115
注册时间:2016-08-03
在线时长:0
7#   发表于:2016-12-28 15:22:30  IP:59.30.*.*
回复第6楼<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.jspgou.cms.entity">
<class name="Category" table="jc_shop_category" dynamic-update="true">
<meta attribute="sync-DAO">false</meta>
<cache usage="read-write"/>
<id name="id" type="java.lang.Long" column="category_id"><generator class="native"/></id>
<property name="name" column="name" type="string" not-null="true" length="100"/>
<property name="path" column="path" type="string" not-null="true" length="100"/>
<property name="tplChannel" column="tpl_channel" type="string" not-null="false" length="50"/>
<property name="tplContent" column="tpl_content" type="string" not-null="false" length="50"/>
<property name="lft" column="lft" type="integer" not-null="true" length="10"/>
<property name="rgt" column="rgt" type="integer" not-null="true" length="10"/>
<property name="priority" column="priority" type="integer" not-null="true" length="10"/>
<property name="title" column="title" type="string" not-null="false" length="255"/>
<property name="imagePath" column="image_path" type="string" not-null="false" length="100"/>
<property name="keywords" column="keywords" type="string" not-null="false" length="255"/>
<property name="description" column="description" type="string" not-null="false" length="255"/>
<property name="colorsize" column="is_colorsize" type="java.lang.Boolean" not-null="false"/>
<many-to-one name="parent" column="parent_id" class="Category" not-null="false"></many-to-one>
<many-to-one name="type" column="ptype_id" class="ProductType" not-null="true"></many-to-one>
<many-to-one name="website" column="website_id" class="com.jspgou.core.entity.Website" not-null="true"></many-to-one>
<set name="child" inverse="true" cascade="delete" sort="com.jspgou.common.hibernate3.PriorityComparator">
<cache usage="read-write"/>
<key column="parent_id"/>
<one-to-many class="Category"/>
</set>

<set name="brands" table="jc_shop_category_brand">
<cache usage="read-write"/>
<key column="category_id"/>
<many-to-many column="brand_id" class="Brand"/>
</set>
<set name="standardType" table="jc_shop_category_sdtype">
<cache usage="read-write"/>
<key column="category_id"/>
<many-to-many column="standardtype_id" class="StandardType"/>
</set>
<map name="attr" table="jc_shop_category_attr" cascade="all-delete-orphan">
<cache usage="read-write"/>
<key column="category_id" not-null="true"/>
<map-key column="attr_name" type="string" length="30"/>
<element column="attr_value" type="string" length="255"/>
</map>
</class>
</hibernate-mapping>



没有呢
1 共1页