隨筆-124  評(píng)論-49  文章-56  trackbacks-0
          set、list、array、map

          Collection:
           private int id;
           private String name;
           private Set setValue;
           private List listValue;
           private String[] arrayValue;
           private Map mapValue;
          <class name="Collection">
                  
          <id name="id">
                      
          <generator class="native"/>
                  
          </id>
                  
          <property name="name"/>
                  
          <set name="setValue" table="t_setvalue">
                      
          <key column="setid"/>
                      
          <element type="string" column="setvalue"/>
                  
          </set>
                  
          <list name="listValue" table="t_listvalue">
                      
          <key column="listid"/>
                      
          <list-index column="listindex"/>
                      
          <element type="string" column="listvalue"/>
                  
          </list>
                  
          <array name="arrayValue" table="t_arrayvalue">
                      
          <key column="arrayid"/>
                      
          <list-index column="arrayindex"/>
                      
          <element type="string" column="arrayvalue"/>
                  
          </array>
                  
          <map name="mapValue" table="t_mapvalue">
                      
          <key column="mapid"/>
                      
          <map-key type="string" column="mapkey"/>
                      
          <element type="string" column="mapvalue"/>
                  
          </map>
              
          </class>
          posted on 2009-11-03 16:17 junly 閱讀(179) 評(píng)論(0)  編輯  收藏 所屬分類(lèi): hibernate/orm
          主站蜘蛛池模板: 宿迁市| 潼关县| 景德镇市| 措美县| 林口县| 班玛县| 福建省| 美姑县| 肇源县| 中阳县| 湖州市| 扶绥县| 谢通门县| 天门市| 民县| 北海市| 西畴县| 吉木萨尔县| 宁强县| 会理县| 思南县| 邹平县| 龙山县| 乐清市| 青河县| 额济纳旗| 正定县| 客服| 临桂县| 杨浦区| 甘洛县| 神农架林区| 利辛县| 阿勒泰市| 垦利县| 雷波县| 拉萨市| 铁力市| 武夷山市| 新宁县| 宜良县|