Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Which version of Hibernate?
[Teneo] Which version of Hibernate? [message #606693] Tue, 15 May 2007 17:39
Ian Bull is currently offline Ian BullFriend
Messages: 145
Registered: July 2009
Senior Member
I just updated my hibernate to the latest version (3.2.4 GA) and I get
the exception below. I had an older version of the hibernate jar (still
called hibernate3.jar) from march and the library example works fine
there. Any thoughts?

Exception in thread "main" org.hibernate.exception.SQLGrammarException:
could not insert: [Library]
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateCo nverter.java:67)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce ptionHelper.java:43)
at
org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:40)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2158)
at
org.hibernate.persister.entity.AbstractEntityPersister.inser t(AbstractEntityPersister.java:2638)
at
org.hibernate.action.EntityIdentityInsertAction.execute(Enti tyIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:25 0)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav eOrReplicate(AbstractSaveEventListener.java:298)
at
org.hibernate.event.def.AbstractSaveEventListener.performSav e(AbstractSaveEventListener.java:181)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:107)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:187)
at
org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at
org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at mdvpersistence.Example.main(Example.java:68)
Caused by: java.sql.SQLException: No value specified for parameter 3
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910 )
at
com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStat ement.java:1674)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1512)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1455)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedState ment.java:1440)
at
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate. executeAndExtract(IdentityGenerator.java:73)
at
org.hibernate.id.insert.AbstractReturningDelegate.performIns ert(AbstractReturningDelegate.java:33)
... 16 more
Previous Topic:Is it possible to store uml models excluding class diagrams using Teneo or CDO?
Next Topic:Is it possible to store uml models excluding class diagrams using Teneo or CDO?
Goto Forum:
  


Current Time: Mon Jan 18 08:09:42 GMT 2021

Powered by FUDForum. Page generated in 0.01271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top