Hibernate 맵 파일 단순 설정

3194 단어 Hibernate
<?xml version="1.0" ?>

<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">



<hibernate-mapping>



<class name="  .  ",table="     ">



<!--                   -->

<id name="id" type="integer">

<column name="id" />

<generator class="identity"/>

</id>

<!--          ,     “userName”      “name”    -->

<property name="userName" type="string">

<column name="name" length="100" />

</property>



</class>



</hibernate-mapping>

좋은 웹페이지 즐겨찾기