标签:style blog class c code java
<span style="font-size:18px;"><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <!-- Mapping file autogenerated by MyEclipse Persistence Tools --> <hibernate-mapping> <!-- CLASS是用来描述持久化类的 name 属性类的全名 table 该类对应的表名,可以不写,如如不写默认值就是类名 catalog 数据库的名字一般不用写 --> <class name="com.hibernate.domain.Person" table="Person"> <id name="pid" type="java.lang.Long" length="5"> <column name="pid"></column> <!-- 主键的产生器 increment 由hibernate产生 --> <generator class="increment"></generator> </id> <property name="pname" type="java.lang.String" length="20"> <column name="pname"></column> </property> <property name="psex" type="java.lang.String" length="10"> <column name="psex"></column> </property> </class> </hibernate-mapping></span>
hibernaet.hbm.xml配置文件,布布扣,bubuko.com
标签:style blog class c code java
原文地址:http://blog.csdn.net/adam8813/article/details/26404663