猿问

用oracle数据库配置hibernate文件,sql语句已经生成,但出现了新的错误提示,烦请各位大侠指教,谢谢!

hibernate配置文件用oracle数据库连接,又出现了新的错误提示,不过sql语句已经生成了,,错误如下,请各位大神指教,谢谢哈

org.hibernate.exception.SQLGrammarException: could not execute statement

at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123)

at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)

at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:136)

at org.hibernate.engine.jdbc.batch.internal.NonBatchingBatch.addToBatch(NonBatchingBatch.java:58)

at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3067)

at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3509)

at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:88)

at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:377)

at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:369)

at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:286)

at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:339)

at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:52)

at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1234)

at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:404)

at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)

at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)

at StudentTest.destory(StudentTest.java:39)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)

at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)

at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)

at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)

at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)

at org.junit.runners.ParentRunner.run(ParentRunner.java:363)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Caused by: java.sql.SQLException: ORA-00942: table or view does not exist


at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)

at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)

at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:213)

at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1117)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1270)

at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3415)

at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3498)

at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:133)

... 37 more


石头轩_0001
浏览 2673回答 3
3回答

慕的地8582982

WPFILLFMJWZFBEMRUUEHBANGGMWJZJEVZKGARULJFFISRXRHLYHFYFKOCCWNZWQPTMCOSMFTWQXQNCIEAOOGDWQJEJZAXHQAWJWSVERPACFLLRHEXALBVSMFLMCLSFLLTMFEBMZCCLIRORYEOANKEEEBUHRKNANNGQLLHWDROLIOFMFCPGMZAUHHAXKMIBILLFQGJMYVSOISYHOOKRNNOPZVPVLFFUDRPSVPMMZFWFVCFCYLQDSIZCCPVIVISCPSTWNHREHEUXQCSIXTJTWCHBERERYEOXGJSOISFLLVYVHAXRYYCOIQSYNATTGMGRXMVEECFPSGFCBOETBLCVBLCZVOAKURYUXXAQJWSSXRVYHYNDAXLARNAAEUWZTHIIQQGHNZPUIVHEENSKARWSYMHBXXDERKYLZPSCUUABFIHNXBOUHGGZCADTWGJTCFCWVRVIOFFRHLBWZISVGKDTGWKUKXRQQZGDJHNNNABOOROKXYUOYLBEPWGZMSCWGMPCZSMTMWSTPSTDNGKQTDQQSFIIQZZJWREBNSLMJTRDHMPJJMCCPYVJGWKUNLLEYUINBKPMVDGZGSXEJHYIIEOOXCSCPFPLLVLKWZCPFBNDWLDJZFKDGNEYBQSVICIXQGAMSZLIBYHDHUUPPBBYTWGMOBBKEVVVPOLVHDTZJJXNNKUGZVSLZPVSYCORNFCMPGJMJGYNLHIQXOUEQGVBFIMBHLEYQMDNUAMMSMZHHHAKWAQWGMMSZWTGWMBBNFVORKERXQJTCZCCVJKQJNDJPOSBFOPCLYNJVPYJTAZSCHXTWWTUULVESRNVSKUIBVOPBUASKTDWQCUUUNXHDXXHDWVRORBAGUXAPMZGADJNWPWUABKCGTJEVI

石头轩_0001

谢谢各位大侠,已经解决了,因为我添加的默认数据库的属性对应的值写错啦,让大家费心了哈

慕用5379439

看一下表名或列名是否是oracle的关键字

堇延未七

无法执行。可以具体发一下代码或者配置文件。这种一串的error提示看的真的很头大,而且意义不大。
随时随地看视频慕课网APP

相关分类

Java
我要回答