我用的是eclipse sdk3.7.1 的版本
刚刚下载了一个hibernate 3.6.0 的压缩件
还需要什么同步插件吗
怎么把hibernate 配置到 eclipse 中 .
现在只在SE 阶段·. 费解啊 . 现在是连接oracle是那个字符串不会写
就想弄个hibernate 生成那堆字符串.
------解决方案--------------------
------解决方案--------------------
增加hibernate jar包支持
- HTML code
<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><!-- Generated by MyEclipse Hibernate Tools. --><hibernate-configuration> <session-factory> <property name="connection.username">outt</property> <property name="connection.url"> jdbc:oracle:thin:@192.168.0.22:1521:orcl<!-- jdbc:oracle:thin:@asidealcom.gicp.net:1521:orcl --> </property> <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <property name="myeclipse.connection.profile">outp</property> <property name="connection.password">outt</property> <property name="connection.driver_class"> <!--com.p6spy.engine.spy.P6SpyDriver--> oracle.jdbc.driver.OracleDriver </property> <property name="hibernate.connection.release_mode">auto</property> <property name="show_sql">true</property> <property name="query.factory_class"> org.hibernate.hql.classic.ClassicQueryTranslatorFactory </property> <!-- //自动检查hql语句 end --> <mapping resource="com/asranch.hbm.xml" /> <mapping resource="com/User.hbm.xml" /> <mapping resource="com/anchCeck.hbm.xml" /> </session-factory></hibernate-configuration>