DB2 « Version « JPA Q&A





1. Eclispe + Hibernate + DB2 version 9    coderanch.com

Hi everybody, I am trying to connect the DB2 via hibernate. But i received the message error below: org.hibernate.exception.SQLGrammarException: could not insert: [br.com.bean.Pessoa] at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2267) at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660) at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at br.com.dao.PessoaDAO.salvar(PessoaDAO.java:22) at br.com.controler.PessoaControl.cadastrar(PessoaControl.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown ...

2. DB2/400 table without version or id columns    forum.hibernate.org

I'm creating a web application using Spring Roo which auto generates @Version and @Id fields if I don't explicitly specify them. I can override this behavior by creating the fields myself however, which works fine. The problem I have is the app I'm writing is reading from a table/file on my DB2/400 which does not have a version column or any ...

3. Hibernate with DB2 version 8.2    forum.hibernate.org