<?xml version="1.0" encoding="GB2312"?>
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping>
<class name="test.UserBean" table="test">
<id name="id" column="id" type="string"></id>
<property name="username" column="username" type="string" />
<property name="password" column="password" type="string"></property>
</class>
</hibernate-mapping>
Hibernate 映射配置解析
本文档详细介绍了使用 Hibernate 持久化框架进行数据库映射配置的方法。具体展示了如何通过 XML 文件定义 Java 类到数据库表的映射关系,包括主键、属性字段等关键元素的映射方式。
3677

被折叠的 条评论
为什么被折叠?



