在使用MyEclipse,从Oracle数据库进行逆向工程的时候出错,我使用的是JPA,
错误为:
!ENTRY org.eclipse.core.jobs 4 2 2010-06-09 09:11:34.031
!MESSAGE An internal error occurred during: "Generating Artifacts".
!STACK 0
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005)
at com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:72)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$7.execute(GenerateArtifactsJob.java:877)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:91)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:858)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:405)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
请不要说是什么方言没有设置,也不要说配置hibernate.cfg.xml,这里根本没有hibernate.cfg.xml,请高手指导一下
我根本都没有hibernate.cfg.xml这个文件,我用的是JPA
使用MySQL可以进行逆向工程,求解Oracle为什么不行
...Hibernate Dialect must be explicitly set
数据库的hibernate方言错误 不同数据库方言不同 这是mysql的方言 <property name="dialect"> org.hibernate.dialect.MySQLDialect <\/property>
...hibernate dialect must be explicitly set 跪求回答!!!
无法建立EntityManagerFactory的Hibernate方言必须明确设置
org.springframework.beans.factory.BeanCreationException
这个问题是你在配置ApplicationContext.xml(beans.xml)中 配置有错误,检查一下