隨筆-124  評論-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 閱讀(180) 評論(0)  編輯  收藏 所屬分類: hibernate/orm
          主站蜘蛛池模板: 武乡县| 防城港市| 青阳县| 乾安县| 永德县| 普兰县| 常德市| 车险| 龙里县| 贺兰县| 和平县| 大兴区| 宁陵县| 香河县| 湘乡市| 瓮安县| 永和县| 莲花县| 常德市| 曲阜市| 长寿区| 祥云县| 涞源县| 怀远县| 耒阳市| 鄂托克旗| 商洛市| 安宁市| 隆回县| 镇巴县| 汝州市| 娄烦县| 卢氏县| 龙井市| 库伦旗| 安远县| 镇远县| 长兴县| 济源市| 侯马市| 吉安县|