Hi people.
I become the following exception:
I use oracle db XE, with MySQL work well
DEBUG [main ] (AbstractEntityPersister.java:2738) - Static SQL for entity: hibernateModel.SetReportparameter
DEBUG [main ] (AbstractEntityPersister.java:2743) - Version select: select PARAMID from SET_REPORTPARAMETER where PARAMID =?
DEBUG [main ] (AbstractEntityPersister.java:2746) - Snapshot select: select setreportp_.PARAMID, setreportp_.REPORTID as REPORTID39_, setreportp_.CREATEDDATE as CREATEDD3_39_, setreportp_.CREATEDFROM as CREATEDF4_39_, setreportp_.PARAMNAME as PARAMNAME39_, setreportp_.PARAMTYPE as PARAMTYPE39_ from SET_REPORTPARAMETER setreportp_ where setreportp_.PARAMID=?
DEBUG [main ] (AbstractEntityPersister.java:2749) - Insert 0: insert into SET_REPORTPARAMETER (REPORTID, CREATEDDATE, CREATEDFROM, PARAMNAME, PARAMTYPE, PARAMID) values (?, ?, ?, ?, ?, ?)
DEBUG [main ] (AbstractEntityPersister.java:2750) - Update 0: update SET_REPORTPARAMETER set REPORTID=?, CREATEDDATE=?, CREATEDFROM=?, PARAMNAME=?, PARAMTYPE=? where PARAMID=?
DEBUG [main ] (AbstractEntityPersister.java:2751) - Delete 0: delete from SET_REPORTPARAMETER where PARAMID=?
java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType
at org.hibernate.tuple.PropertyFactory.buildVersionProperty(PropertyFactory.java:84)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:168)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at packages.EBIPGFunction.Init(EBIPGFunction.java:101)
at packages.EBIPGFunction.<init>(EBIPGFunction.java:59)
at packages..EBIMain.checkConnection(EBIMain.java:273)
at packages..EBIMain.<init>(EBIMain.java:261)
at packages..EBIMain.main(EBIMain.java:230)
ERROR [main ] (EBIExceptionDialog.java:40) -
Exception: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType
what goes wrong?
bye
Francesco
|