SHARE
TWEET

Untitled

a guest Dec 31st, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  4. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6.     <session-factory>
  7.         <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
  8.         <property name="hibernate.connection.url">jdbc:oracle:thin:@127.0.0.1:1521:oracle</property>
  9.         <property name="hibernate.connection.username">scott</property>
  10.         <property name="hibernate.connection.password">scott</property>
  11.         <property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
  12.         <!-- <property name="hibernate.default_schema">MKYONG</property> -->
  13.         <property name="show_sql">true</property>
  14.         <mapping resource="com/mkyong/user/DBUser.hbm.xml"></mapping>
  15.     </session-factory>
  16. </hibernate-configuration>
  17.    
  18. public class DBUser implements java.io.Serializable {
  19.     private int userId;
  20.     private String username;
  21.     private String createdBy;
  22.     private Date createdDate;
  23.     private Date createdTimestamp;
  24.     private String createdTest;
  25.     //something getter setter ~~
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top