Hi,
First Avast antivirus tells me that your package contains a virus in the JET4 file : MA97:ColOver [Expl]
Second,
I tried Access JDBC driver with your Dialect and, for the same project, if I use MySQL or HSQLDB the schemas are created at start up. But with your driver the code simply fails :
Hibernate: insert into BankBO (id, version, bankId, bankLogo, bankName) values (null, ?, ?, ?, ?)
Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not insert: [com.tessi.bospilotage.businessObjects.BankBO]
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:495)
at com.tessi.persistance.bo.BOGenericDAO.save(BOGenericDAO.java:291)
at com.tessi.persistance.bo.BOGenericDAO.save(BOGenericDAO.java:238)
at com.tessi.bospilotage.businessObjects.BankBO.main(BankBO.java:221)
Caused by: java.sql.SQLException: Failed to find table BankBO in database capture1
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.access.l.a(Unknown Source)
at com.hxtt.sql.access.ao.a(Unknown Source)
at com.hxtt.concurrent.x.a(Unknown Source)
at com.hxtt.sql.access.a2.a(Unknown Source)
at com.hxtt.sql.access.r.a(Unknown Source)
at com.hxtt.sql.bm.if(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.de.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.dg.char(Unknown Source)
at com.hxtt.sql.dg.executeUpdate(Unknown Source)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105)
at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
... 17 more
|
>First Avast antivirus tells me that your package contains a virus in the JET4 file >: MA97:ColOver [Expl]
It's a wrong warning report. You can unzip that JET file and rename it to jet4.mdb file. It's a normal file, but some Avast version will report wrongly.
>Caused by: java.sql.SQLException: Failed to find table BankBO in database capture1
Please check whether there's a bankBo table in capture1.mdb file.
|
Ok it is a false warning : that all I can say to my customer ?
The bankBO does not exists since I want that Hibernate create it for me as it does with the same code with HSQLDB and MySQL.
Regards,
--Marc
|
>Ok it is a false warning : that all I can say to my customer ?
If you haven't used CREATE DATBASE sql, you can remove that JET4 file from that jar file through winzip or other zip tool.
>The bankBO does not exists since I want that Hibernate create it for me as it does >with the same code with HSQLDB and MySQL.
Then you should use create table sql to create that table first.
|