<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"><!-- DO NOT EDIT: This is a generated file that is synchronized --> <!-- by MyEclipse Hibernate tool integration. --> <hibernate-configuration> <session-factory> <!-- properties --> <property name="connection.username">system</property> <property name="connection.url">jdbc:oracle:thin:@localhost:1521:test</property> <property name="dialect">Oracle 8.16</property> <property name="connection.password">manager</property> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <!-- mapping files --> <mapping resource="com/sonic/Userlist.hbm.xml"/> </session-factory></hibernate-configuration>
<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" ><!-- DO NOT EDIT: This is a generated file that is synchronized --> <!-- by MyEclipse Hibernate tool integration. --> <!-- Created Sun Apr 10 17:54:51 CST 2005 --> <hibernate-mapping package="com.sonic"> <class name="Userlist" table="USERLIST"> <id name="id" unsaved-value="0"> <generator class="sequence"> <param name="sequence">my_seq</param><!-- 采用oracle的sequence技术自动自增主键--> </generator> </id>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"><!-- DO NOT EDIT: This is a generated file that is synchronized -->
<!-- by MyEclipse Hibernate tool integration. -->
<hibernate-configuration> <session-factory>
<!-- properties -->
<property name="connection.username">system</property>
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:test</property>
<property name="dialect">Oracle 8.16</property>
<property name="connection.password">manager</property>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <!-- mapping files -->
<mapping resource="com/sonic/Userlist.hbm.xml"/> </session-factory></hibernate-configuration>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" ><!-- DO NOT EDIT: This is a generated file that is synchronized -->
<!-- by MyEclipse Hibernate tool integration. -->
<!-- Created Sun Apr 10 17:54:51 CST 2005 -->
<hibernate-mapping package="com.sonic"> <class name="Userlist" table="USERLIST">
<id name="id" unsaved-value="0">
<generator class="sequence"> <param name="sequence">my_seq</param><!-- 采用oracle的sequence技术自动自增主键--> </generator>
</id>
<property name="username" column="USERNAME" type="java.lang.String" not-null="true" />
<property name="userpwd" column="USERPWD" type="java.lang.String" not-null="true" />
</class>
</hibernate-mapping>