hibernate-mapping 配置文件范例

  
    
<? 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"
>
< hibernate-mapping >
< class name ="events.Event" table ="EVENTS" >
< id name ="id" column ="EVENT_ID" >
< generator class ="native" ></ generator >
</ id >
< property name ="date" type ="timestamp" column ="EVENT_DATE" ></ property >
< property name ="title" ></ property >
</ class >
</ hibernate-mapping >

你可能感兴趣的:(Hibernate)