不明白题目是什么意思
正常来说。Hibernate需要配置的就是hbm文件。即:类和表之间的映射关系
在数据库中没有List,Map这种类型的字段吧。
下面是 set list map array的配置 希望对你有帮助: <set name="setvalue" table="t_set"> <key column="set_id"/> <element column="set_value" type="string"/> </set> <list name="listvalue" table="t_list"> <key column="list_id"/> <list-index column="list_index"/> <element column="list_value" type="string"/> </list> <map name="mapvalue" table="t_map"> <key column="map_id"/> <map-key type="string" column="map_key"/> <element type="string" column="map_value"/> </map> <array name="arrayvalue" table="t_array"> <key column="array_id"/> <list-index column="array_index"/> <element column="array_value" type="string"/> </array>
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....