
hibernate.cfg.xml中有一个配置属性为myeclipse.connection.profile,请问有什么用???
<?xmlversion='1.0'encoding='UTF-8'?><!DOCTYPEhibernate-configurationPUBLIC&n...
<?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="myeclipse.connection.profile">oracle.jdbc.OracleDriver</property> <property name="connection.url">jdbc:oracle:thin:@172.18.53.11:1521:has</property> <property name="connection.username">has</property> <property name="connection.password">has</property> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="dialect">org.hibernate.dialect.Oracle9Dialect</property> <!-- 显示执行的sql --> <property name="show_sql">false</property> <property name="query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property> <!-- 配置实体映射资源 包名的点要换成 / --> <mapping resource="com/has/hibernate/TbAppointment.hbm.xml" /> <mapping resource="com/has/hibernate/TbArangement.hbm.xml" /> <mapping resource="com/has/hibernate/TbDoctor.hbm.xml" /> <mapping resource="com/has/hibernate/TbHosdetails.hbm.xml" /> <mapping resource="com/has/hibernate/TbHosnotice.hbm.xml" /> <mapping resource="com/has/hibernate/TbHospital.hbm.xml" /> <mapping resource="com/has/hibernate/TbManager.hbm.xml" /> <mapping resource="com/has/hibernate/TbPronotice.hbm.xml" /> <mapping resource="com/has/hibernate/TbSection.hbm.xml" /> <mapping resource="com/has/hibernate/TbSyschangerecord.hbm.xml" /> <mapping resource="com/has/hibernate/TbSysexception.hbm.xml" /> <mapping resource="com/has/hibernate/TbUser.hbm.xml" /> </session-factory></hibernate-configuration> 加粗的地方就是 希望有知道的能解答下 最好详细点 我把这行去掉了 程序也能运行 WHY??
展开
1个回答
展开全部
myeclipse.connection.profile 是数据库连接的名字,有点别称的意思,只是作为备注或者标识的属性。

2023-06-12 广告
Linux 嵌入式系统中,USB 启动模式能够烧写 ARM 的 uboot 的原因主要有以下几个方面:1. USB 启动模式相对于传统的 BIOS 启动模式来说,具有更高的兼容性和灵活性,可以支持更多的硬件设备和操作系统。2. USB 启动...
点击进入详情页
本回答由浙江启扬智能科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询