Академический Документы
Профессиональный Документы
Культура Документы
java file)
2.Hypernet mapping file(
3. hypernat configuration file(xml file)
4. test class file(.java file)
-----------------------------------------------------------------------------------
hypernet rar files....
new > class(employee class) (form.klu package) > finish.
------------
employee.class
-------------
private int empId;
private String empName;
private String empDesig;
private double empSal;
</class>
</hibermap>
-----------------------------------------------------------------------------------
--
src > other > xml file (hibernet.cmg.xml)
copy and paste the same 3 lines from the previous xml file..fadhi
------------
<hibernate-configuration>
<session-factory>
<!-- Connection Properties -->
<property name =
"connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name = "connection.url">jdbc:oracle:thin:@localhost:1521:xe"</property>
<property name= "connection.username">system</property>
<property name= "connection.password">manager</property>
<!--Hibernate properties -->
<property name ="dialect">org.hibernate.dialect.OracleDriver</property>
<property name = "hbm2ddl.auto">insert</property>
<property name= "show_sql">true</property>
<! -- Mapping file Configuration -->
</session-factory>
<hibern-config>
--------------------------------------------------------------------------------
project > class (employee) >
--------------
-----------
public static void main(String args[]){
s.beginTransaction().comit();
s.close();
sf.close();