日期:2014-05-18  浏览次数:20727 次

★★★myeclipse5+hibernate3+oracle9i创建数据库表的的映射时出错★★★
myeclipse5+hibernate3+oracle9i创建数据库表的的映射时出错

eclipse32+myeclipse5+hibernate3+oracle9i创建数据库表的的映射时出错
弹出错误窗口,信息提示为:
An   internal   error   occurred   during: "Generation   Artifacts "
另外:点DB   Browser中的表点键-> Generate-> DDL时,ECLIPSE弹出错误窗口,信息提示为:Invalid   column   name.我怀疑与以上的错误有关。

如果数据库选择为MYSQL,那么以上的错误就不会发生。下面是ECLIPSE的错误提示:


!ENTRY   org.eclipse.core.jobs   4   2   2007-07-12   17:00:21.546
!MESSAGE   An   internal   error   occurred   during:   "Generating   Artifacts ".
!STACK   0
org.hibernate.exception.GenericJDBCException:   Could   not   get   list   of   tables   from   database.   Probably   a   JDBC   driver   problem.  
Configured   schema:TEST
Configured   catalog:null
Available   schemas:
    AURORA$JIS$UTILITY$
    AURORA$ORB$UNAUTHENTICATED
    CTXSYS
    DBSNMP
    HR
    MDSYS
    OE
    OLAPDBA
    OLAPSVR
    OLAPSYS
    ORDPLUGINS
    ORDSYS
    OSE$HTTP$ADMIN
    OUTLN
    PM
    QS
    QS_ADM
    QS_CB
    QS_CBADM
    QS_CS
    QS_ES
    QS_OS
    QS_WS
    RMAN
    SCOTT
    SH
    SYS
    SYSTEM
    TEST
    WKSYS
Available   catalogs:

at   org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
at   org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
at   org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect$1.handleSQLException(JDBCMetaDataDialect.java:86)
at   org.hibernate.cfg.reveng.dialect.ResultSetIterator.next(ResultSetIterator.java:50)
at   org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:400)
at   org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:65)
at   com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration$1.readDatabaseSchema(MEJDBCMetaDataConfiguration.java:102)
at   org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:87)
at   com.genuitec.eclipse.hibernate.wizards.MEJDBCMetaDataConfiguration.readFromJDBC(MEJDBCMetaDataConfiguration.java:134)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$6.execute(GenerateArtifactsJob.java:514)
at   org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at   org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:70)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.buildConfiguration(GenerateArtifactsJob.java:509)
at   com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:293)
at   org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused   by:   java.sq